I'm trying to create a cron that will run one time at a specific time.
For simplicity, how can I create a cron that will run at 11:57PM and print "Hello" to the screen then delete itself? (Cent OS 5)
|
feedback
|
|
If you need it to run just once, cron is not your tool.
E.g.:
(Press ctrl+d when done entering commands) Scheduling relatively to now
And as always, read much more on how to use this tool in the man page for it. | ||||
|
feedback
|
|
If you use at, the output of the command will be emailed to you. To output text to the current terminal do the following:
Note that when you use now + x minutes, the execution time will be rounded to the previous minute. | |||
|
feedback
|