1834934 Members
2389 Online
110071 Solutions
New Discussion

cron

 
Rpger Tavener
Occasional Advisor

cron

there is a script running nightly on our HPUX 11.0 server.We are trying to find out who or what scheduled it.. It does not appear in any crontab files. Any ideas?
When the only tool you own is a hammer, every problem looks like a nail!
5 REPLIES 5
Paula J Frazer-Campbell
Honored Contributor

Re: cron

Hi
As a start look in the cron.allow file

/var/adm/cron/cron.allow

That might give a pointer, also whose ownership is the script under?

Also try to trace it back on the pids -parent/child.

What does the scipt do? this also might give an indication.

HTH

Paula
If you can spell SysAdmin then you is one - anon
Rita C Workman
Honored Contributor

Re: cron

Have you checked /var/adm/cron/log??

I believe this will show the user that kicks off the task..

/rcw
James R. Ferguson
Acclaimed Contributor

Re: cron

Hi:

Look at /var/adm/cron/log . This shows the script name (for cron tasks) or the id of 'at' commands. In either case the user name of the initiator is shown along with the start and stop times. You might use the name to trace back to a user's mailbox (/var/mail/) for more useful information.

'at' as well as 'cron' can be allowed or denied with entries in /var/adm/cron/at.allow and /var/adm/cron/at.deny similar to /var/adm/cron/cron.allow and /var/adm/cron/cron.deny. See the man pages for 'at' and 'cron'.

...JRF...
Dan Hetzel
Honored Contributor

Re: cron

Hi Roger,

If it's not in any of the crontabs, then it's most probably a job started with 'at'.

Have a look at the /var/spool/cron/atjobs directory.

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Manikantan IB
Occasional Contributor

Re: cron

Hi

The best place to find your answer is @/var/adm/cron/log.. or the user might have used the 'at' command

Cheers and Regards
Manikantan IB