Date: Thu, 02 Feb 2012 07:18:14 +0200 From: Toomas Aas <toomas.aas@raad.tartu.ee> To: freebsd-questions@freebsd.org Subject: Identifying at jobs Message-ID: <20120202071814.20673llnbpp31iw4@webmail.raad.tartu.ee>
next in thread | raw e-mail | index | archive | help
I've been curious about this for a long time. Say I have three jobs scheduled with at, as seen with atq: # atq Date Owner Queue Job# Thu Jan 12 22:12:00 EET 2012 root c 6931 Fri Jan 13 03:44:00 EET 2012 root c 6932 Fri Jan 13 04:01:00 EET 2012 root c 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120202071814.20673llnbpp31iw4>