Enter your email address:

Delivered by FeedBurner

at - command to schedule actions

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

2. 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

Share/Save
 #

hi,
I recieved this error

at now + 5 minutes < salida.sh
warning: commands will be executed using /bin/sh
Cannot open lockfile /var/spool/cron/atjobs/.SEQ: No such file or directory

any idea ?
thanks

 
 #

Thanks, I didn't know it accepted DD.MM.YY.

 
 #

Thanks - I knew about the at command - but did not know about the 'now' argument.

 

Navigation

For your laptop needs, visit LaptopLogic - the laptop review site with news, articles, tips and how-to's.

Recent comments