saving at jobs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I can easily save cron jobs in a file by doing this:

crontab -l > file.txt

And I can restore it with

crontab file.txt

Is there any way to do the same thing with at jobs?

The closest thing that I've managed to find is this:

#!/bin/bash
atq
for each in $(atq | cut -f 1); do echo "JOB $each"; at -c $each; done

That works but the output is very wordy and there is no way to restore it other than manually going through the output file and re-entering each job.



-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux