Batch jobs using at
Submitted by Des on Wed, 10/02/2013 - 21:20
Change to root user in SuSE
su -
In ubuntu use sudo before every administrative task. To install packages inubuntu use sudo apt-get install packagename
sudo apt-get install atd
To schedule a task using at, first make sure you have the service running on you machine.
service atd status
If its not installed, for SuSE you use zypper
zypper in atd
If it's not running start the service
service atd start
Make it start every time the machine boots
chkconfig atd on
To copy your home folder to a backup directory at 23:00 at night as root user type at and and then the command
at 23:00
Then once you have the at> prompt type your command
at>cp -R /home /backups