From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,1c7be0cba28c1a92 X-Google-Attributes: gidfee84,public From: pedwards@valhalla.cs.wright.edu (Phil Edwards) Subject: Re: where does 'at' store times Date: 1996/04/15 Message-ID: <4ku99d$ktk@valhalla.cs.wright.edu>#1/1 X-Deja-AN: 147657568 distribution: world references: <4kn6b1$m38@atlas.tncnet.com> organization: the top of Solsbury Hill. newsgroups: comp.unix.osf.osf1 [cc'd to poster] With <4kn6b1$m38@atlas.tncnet.com>, it seems Jay Olson (jjo@triton.com) sez: + I have a (Tk/Tcl) application which needs to find the times + when 'at' jobs of other users are to be run. I can find the + jobs by looking in /var/spool/cron/atjobs, but I don't know + when they are going to run. The filenames themselves define the job characteristics. Check out the man page for at(1): # # Job numbers are specified as follows: # # user.xxxxxxxxx.y # # The user argument identifies the user who scheduled the job. xxxxxxxxx is # a 9-digit number (encoded time for the job). y indicates the job type or # queue name as follows: # # Argument Job Type # # a at job # # b batch job # # e ksh job # # f csh job # If you look inside the directory, you'll find that the job files are of that type. Personally, I wouldn't be surprised if the "encoded time" wasn't simply the result of a call to time(2), or maybe some ctime conversion with the seconds field stripped. Luck++; Phil -- #include The gods do not protect fools. Fools finger pedwards@gamma.cs.wright.edu are protected by more capable fools. email pedwards@valhalla.cs.wright.edu -Larry Niven