Operating System - HP-UX
1748038 Members
4874 Online
108757 Solutions
New Discussion

Re: No entry in crontab but there is a log for one command in /var/adm/cron/log

 
senthil_kumar_1
Super Advisor

No entry in crontab but there is a log for one command in /var/adm/cron/log

Hi All,

 

In my one my HPUX server,The following command is being executed on 1st and 15th of every month...And the same has been logged in /var/adm/cron/log...The command has been executed by the user ID "p01edi"...

 

Example;

 

# more /var/adm/cron/log

>  CMD: cd /appl/gentran/p01edi;. /appl/gentran/p01edi/.edi_env;ksh bin/Fn_LOG_PURGE.sh
>  p01edi 10290 c Wed Dec  1 09:10:00 CST 2010

 

But I can not see any entry like "cd /appl/gentran/p01edi;. /appl/gentran/p01edi/.edi_env;ksh bin/Fn_LOG_PURGE.sh" in crontab of "p01edi"...

 

$crontab -l
00 * * * * cd /appl/gentran/p01edi;. /appl/gentran/p01edi/.edi_env;bin/smgr -sedssrftp  -eEDI_ROOT=/appl/gentran/p01edi
00 10,22 * * 01,02,03,04,05 cd /appl/gentran/p01edi;. /appl/gentran/p01edi/.edi_env;bin/smgr -stpupdate  -eEDI_ROOT=/appl/gentran/p01edi
58 23 * * 01 cd /appl/gentran/p01edi;. /appl/gentran/p01edi/.edi_env;bin/smgr -sFAReport_MON  -eEDI_ROOT=/appl/gentran/p01edi
59 23 * * * cd /appl/gentran/p01edi;. /appl/gentran/p01edi/.edi_env;bin/smgr -sFAReport  -eEDI_ROOT=/appl/gentran/p01edi
30 * * * * cd /appl/gentran/p01edi;. /appl/gentran/p01edi/.edi_env;bin/smgr -sedssrftp  -eEDI_ROOT=/appl/gentran/p01edi
58 23 * * 02,03,04,05 cd /appl/gentran/p01edi;. /appl/gentran/p01edi/.edi_env;bin/smgr -sFAReport_mod  -eEDI_ROOT=/appl/gentran/p01edi
00 * * * * cd /appl/gentran/p01edi;. /appl/gentran/p01edi/.edi_env;bin/smgr -sdm_alert  -eEDI_ROOT=/appl/gentran/p01edi
30 * * * * cd /appl/gentran/p01edi;. /appl/gentran/p01edi/.edi_env;bin/smgr -sdm_alert  -eEDI_ROOT=/appl/gentran/p01edi
00 * * * * cd /appl/gentran/p01edi;. /appl/gentran/p01edi/.edi_env;bin/smgr -sgensysalert  -eEDI_ROOT=/appl/gentran/p01edi
30 * * * * cd /appl/gentran/p01edi;. /appl/gentran/p01edi/.edi_env;bin/smgr -sgensysalert  -eEDI_ROOT=/appl/gentran/p01edi

 

 

How to see where the command "cd /appl/gentran/p01edi;. /appl/gentran/p01edi/.edi_env;ksh bin/Fn_LOG_PURGE.sh" is configured to run on 1st and 15th of every month....

9 REPLIES 9
Patrick Wallek
Honored Contributor

Re: No entry in crontab but there is a log for one command in /var/adm/cron/log

Check and see if it is being run by an 'at' job.

 

# at -l

 

rariasn
Honored Contributor

Re: No entry in crontab but there is a log for one command in /var/adm/cron/log

Hi:

 

Verify crontabs of all users:

 

# ll /var/spool/cron/crontabs/

 

rgs,

Dennis Handly
Acclaimed Contributor

Re: No entry in crontab but there is a log for one command in /var/adm/cron/log

 > p01edi 10290 c Wed Dec  1 09:10:00 CST 2010

 

This is months ago.  What does a more current cron log entry look like?

Doug O'Leary
Honored Contributor

Re: No entry in crontab but there is a log for one command in /var/adm/cron/log

Hey;

 

You can see if Fn_LOG_PURGE.sh is referenced in any cron by executing 

 

grep -li fn_log_purge /var/spool/cron/crontabs/*

 

As another poster mentioned, at jobs are also a possibility:

 

at -l

 

HTH;

 

Doug

 


------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
senthil_kumar_1
Super Advisor

Re: No entry in crontab but there is a log for one command in /var/adm/cron/log

Have tried the following commands...but no output.

grep -li fn_log_purge /var/spool/cron/crontabs/*

at -l
James R. Ferguson
Acclaimed Contributor

Re: No entry in crontab but there is a log for one command in /var/adm/cron/log


@senthil_kumar_1 wrote:
Have tried the following commands...but no output.

grep -li fn_log_purge /var/spool/cron/crontabs/*

at -l

And so, as Dennis asked, do you see *current* occurances in the cron.log --- something recent and not December 2010 as you first posted?

 

...JRF...

senthil_kumar_1
Super Advisor

Re: No entry in crontab but there is a log for one command in /var/adm/cron/log

Dear All,

 

Please find the recent log.

 

> CMD: cd /appl/gentran/p01edi;. /appl/gentran/p01edi/.edi_env;ksh bin/Fn_LOG_PURGE.sh > p01edi 5476 c Wed Jun 1 09:10:00 CDT 2011

James R. Ferguson
Acclaimed Contributor

Re: No entry in crontab but there is a log for one command in /var/adm/cron/log


@senthil_kumar_1 wrote:

Please find the recent log.

 

> CMD: cd /appl/gentran/p01edi;. /appl/gentran/p01edi/.edi_env;ksh bin/Fn_LOG_PURGE.sh > p01edi 5476 c Wed Jun 1 09:10:00 CDT 2011


Senthil:

 

Do you really consider a log entry that is 45-days old, "recent"?  It seems as if you are chasing a ghost that has long vanished.

 

Regards!

 

...JRF...

Dennis Handly
Acclaimed Contributor

Re: No entry in crontab but there is a log for one command in /var/adm/cron/log

>Do you really consider a log entry that is 45-days old, "recent"?

 

Right.  As rariasn said, check the date on the crontab file and see if modified more recently.

# ll /var/spool/cron/crontabs/