Re: backing up pending at commands

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



On Sat, 1 Mar 2014 18:47:03 -0600
Frank Cox wrote:

> I can easily get a copy of my pending cron jobs so I can keep a backup.
> "crontab -l > mycron.txt" is part of my backup script, and that does the job
> nicely.
> 
> Is there a way that I can get a copy of pending at jobs for this purpose? 

This output is a bit long-winded, but it should do for my purposes.  Maybe I'll pretty it up a bit more sometime:

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


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