Welcome to the Linux Foundation Forum!

How do I configure my Windows and linux os to shutdown at 9:30 pm night Indian time?

I want to shutdown my computer at 9:30. How can I do this?


  • saqman2060
    saqman2060 Posts: 777

    I am guessing you want to setup some kind of program or script that will shutdown your OSes at a certain time. Is this shutdown procedure going to be permanent or temporary?


    I believe the "cron" program in all Linux operating systems will allow you to schedule a shutdown date and time for your system on a consistant bases. After doing some research, "cron" can be used to run tasks at a certain time for one time or indefinitely. In the case of your request, you will use the "shutdown" command.

    example, with the crontab file open

    30 9 * * * sudo shutdown -h now

    What this simply means, at 30mins past the nineth hour AM, on any day of the month, any month, and any day of the week, shutdown the computer.

    Of course, your time will be different since you want it to match indian time. I did not see time_zone options so you will have to caculate that time on your own. "Cron" reads in army time so 9:30pm will be 21:30 in army time.

    Study this article:


  • saqman2060
    saqman2060 Posts: 777
    edited August 2016

    Also look at this article, https://help.ubuntu.com/community/CronHowto


Upcoming Training