- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- atjobs and cron log - detailed version available
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 07:45 AM
03-25-2004 07:45 AM
I have an application that submits 'at' jobs on behalf of the user and usually runs those jobs immediately. I can see the job submitted in /var/adm/cron/log, but all I see is the 'at' job number. Since the jobs run immediately using at -l and at -d won't help me in this case.
Apart from altering the application to capture and log the stdout from the 'at' command, are there any other options to see exactly what was run? Possibly more detailed logging for the cron daemon?
TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 07:48 AM
03-25-2004 07:48 AM
Re: atjobs and cron log - detailed version available
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 07:56 AM
03-25-2004 07:56 AM
SolutionWhenever the application use "at" , your script will be called, in turn you can log whatever u want, whereever u want and call at in ur script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 09:59 AM
03-25-2004 09:59 AM
Re: atjobs and cron log - detailed version available
Sundar, that's a very good suggestion. I can't believe I didn't think of that because I used the same fix to solve a problem I was having with the cancel/mail command.
I'm not sure if I'll go the route of the shell script 'wrapper' for at, but at least I have an option.
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 01:44 PM
03-25-2004 01:44 PM
Re: atjobs and cron log - detailed version available
10 1 * * * /sbin/sh -x /wherever/myscript
The script will be traced every time it is run. If this is too much logging, just add an echo or two inside the script and redirect it to stderr.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2004 06:51 AM
03-26-2004 06:51 AM
Re: atjobs and cron log - detailed version available
if I edit the /var/adm/cron/.proto (prototype file) and insert a set -x just before the submitted script ($<) then the out put will get mailed to the user, which in my case I have forwared to me.
I think one could get pretty creative with the .proto file, but at least I've got more options now.