Go2Linux | Linux Operating System

A site dedicated to: Linux Operating System

at - command to schedule actions

Date: 2008-08-06 00:00:00 -0400

One of the most uses I give to this command is to turn the PC off after some time, sure there are other ways.

I like the way you may execute batch jobs at a given time, all you need is:

  1. Write your shell script

Which actually is a list of commands in a text file

  1. Execute the at command

at now + 5 minutes < $HOME/listofcommands.txt

You can use times like "now", "noon", "midnight", or a date in the format of DD.MM.YY check man at in order to have more details

If you liked this article please share it.

powered by TinyLetter

If you want to contact me in any other way, please use the contact page.