Re: how to write alarm script exact time
That is what cron is for which can run something regularly at any set day of week or month, or time of day, or interval. In a terminal see:
Code:
man cron
man crontab
man 5 crontab
If you want something to run as root use sudo crontab -e to configure it. If you want it to run as you do crontab -e. Note that the environment will be minimal, so it is best to assume no environment, export any environment you need and/or use full paths (not shortcuts like ~/ or $HOME/ ).
Although, if you just want to set an alarm to do something once only, you might web search "linux rtc".
Last edited by efflandt; December 21st, 2010 at 02:02 AM.
i5 650 3.2 GHz upgraded to i7 870, 16 GB 1333 RAM, nvidia GTX 1060, 32" 1080p & assorted older computers
Bookmarks