From owner-freebsd-questions@FreeBSD.ORG Sun Dec 17 03:23:16 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 92A3216A407 for ; Sun, 17 Dec 2006 03:23:16 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17ACF43CB4 for ; Sun, 17 Dec 2006 03:23:14 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.8) id kBH3NEqu094070; Sat, 16 Dec 2006 21:23:14 -0600 (CST) (envelope-from dan) Date: Sat, 16 Dec 2006 21:23:14 -0600 From: Dan Nelson To: JAMES T RIENDEAU Message-ID: <20061217032314.GA43992@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 6.2-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-questions@freebsd.org Subject: Re: Translate job number from atq to commands that will run X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Dec 2006 03:23:16 -0000 In the last episode (Dec 16), JAMES T RIENDEAU said: > Does anybody know how I could translate the job # into the commands > that will run from the output of the atq command? For example, here > is my current atq: > > Date Owner Queue Job # > Mon Dec 18 09:00:00 CST 2006 root c 34 ... > Sat Jan 6 09:00:00 CST 2007 root c 47 > > I checked the /var/at/spool and /var/at/jobs, but it isn't obvious > which job is scheduled to run when. "at -c n" will list the commands to be run for job n. The filenames in /var/at/jobs are of the format "qnnnnntttttttt", where q is the queue, n is the job number in hex, and t is the time the job is scheduled in hex (in minutes from the Epoch, so multiply by 60 to get the more-standard seconds from Epoch). For more info, see at at manpage and /usr/src/usr.bin/at/at.c . -- Dan Nelson dnelson@allantgroup.com