Operating System - HP-UX
1753667 Members
5637 Online
108799 Solutions
New Discussion

Is there a log for commands ran via 'at now'

 
Raymond E. Lilly
Frequent Advisor

Re: Is there a log for commands ran via 'at now'

I started with the man pages and did some testing. The line Pete mentioned "An at or batch job consists of a two-part script stored in /var/spool/cron/atjobs that can be executed by the POSIX shell." led me to believe the script would be there for me to review. However, this script is only available while it is pending. It is gone as soon as the scheduler runs it.

We are a 24/7 shop with 3 administrators that 'follow the sun'. Sometimes I find evidence that one of my counterparts ran something with 'at now'. I hoped there was an easy way to find the entire command line without the need to change how they work.

Pete's suggestion is the right way to go, but they won't do it. Same goes for using crontab.

One suggestion I got was to wrap a script around the 'at' command and have it do the logging. Sounds feasible, but probably not worth the effort in this case.

Thanks for all the feedback and suggestions!
Ray