Re: Identifying at jobs

2012-02-01 Thread Dan Nelson
In the last episode (Feb 02), Toomas Aas said:
> I've been curious about this for a long time.
> 
> Say I have three jobs scheduled with at, as seen with atq:
> 
> # atq
> DateOwner   Queue   Job#
> Thu Jan 12 22:12:00 EET 2012rootc   6931
> Fri Jan 13 03:44:00 EET 2012rootc   6932
> Fri Jan 13 04:01:00 EET 2012rootc   6933
> 
> How do I tell which job does what? I can see the files corresponding  
> to jobs in /var/at/jobs:

You want "at -c ".  man at:

 -c   Cat the jobs listed on the command line to standard output.

-- 
Dan Nelson
dnel...@allantgroup.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Identifying at jobs

2012-02-01 Thread Toomas Aas

I've been curious about this for a long time.

Say I have three jobs scheduled with at, as seen with atq:

# atq
DateOwner   Queue   Job#
Thu Jan 12 22:12:00 EET 2012rootc   6931
Fri Jan 13 03:44:00 EET 2012rootc   6932
Fri Jan 13 04:01:00 EET 2012rootc   6933

How do I tell which job does what? I can see the files corresponding  
to jobs in /var/at/jobs:


# ls -l /var/at/jobs
total 8
-rw-r--r--  1 root  wheel 6 Jan 12 18:05 .SEQ
-rw---  1 root  wheel 0 Dec 10  2007 .lockfile
-rwx--  1 root  wheel  1096 Jan 12 12:15 c01b130151521c
-rwx--  1 root  wheel  1096 Jan 12 17:45 c01b1401515368
-rwx--  1 root  wheel  1091 Jan 12 18:05 c01b1501515379

If I look into one of the files, say c01b1501515379, I can see the  
command I have scheduled at the end of the file. But how do I tell  
which of these files corresponds to which Job# in atq output? I'd like  
to remove one of the jobs with atrm, but I can't figure out, which job  
I need to remove.


--
Toomas Aas

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"