Unix command ‘at’ can be used to schedule a task at specific time.To get into ‘at>’ command prompt use command ‘batch’.
[leenus@oracle ~]$ batch
at> at 5pm today
at> nohup tar -xzvf oracle.tgz > ~/nohup.out
at> mail -s “Scheduled task Completed” me@myhost.com << ~/nohup.out
ctrl+d to save the job.
To see the scheduled jobs we can give atq
To remove the scheduled job execute atrm -<job_number>
Advertisement