TIL: The unix at command can be used with **at now +5minutes**

in linux •  7 years ago 

unix_command.png

Using At with a relative time.

So you can use the unix at command with the specification now + some time.
I thought I would have to code something to give me an alarm in 2 hours, but that is not necessary when I have at.

The command is

echo command | at now +number unit

Where you will need to replace command with the command you wish to run
number with the amount of time units you want to postpone the command, and unit with something like minute or hour, but remember to spell it out and write the full name.
4.gif

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thank you for the good information I will definitely use it.

That is why I posted this :)

Thanks for the tip!
I usually use sleep command, but with this I need to calculate, here it is easier.