Operating System - HP-UX
1748252 Members
4032 Online
108760 Solutions
New Discussion

Re: Problems with crontab and scp

 
SOLVED
Go to solution
laiju.c.babu
Regular Advisor

Re: Error in lseek and ioctl

Hi Dennis,

 

I used the below command

 

tusc -pfea -o /tmp/resultfile  pid

 

If you didnt get any good infromation from this , i will do it once more and post .

 

Regards

 

Laiju.C.Babu
Dennis Handly
Acclaimed Contributor

Re: Problems with crontab and scp

>tusc -pfea -o /tmp/resultfile pid

 

It appears you did this after that PID forked the process that does the real work?

Can you get a ps(1) output of that PID and its child, so you can make sure you are tracing the right process.

 

Or if this is done on a continual basis, trace the parent of PID and that will eventually have some useful data.

Laurent Menase
Honored Contributor

Re: Error in lseek and ioctl

can you add set -x at the begining of your script

  /eytools/eybin/get_linuxinfo.sh

laiju.c.babu
Regular Advisor

Re: Error in lseek and ioctl

Hi Dennis,

 

Parent PID of this process is crond , can i track with the PID of cron.

 

Regards

 

Laiju.C.Babu
Dennis Handly
Acclaimed Contributor

Re: Problems with crontab and scp

>can I track with the PID of cron?

 

Yes but it may give too much if there are other activities.

You could replace your crontab entry with a script that invokes tusc on your real script.

laiju.c.babu
Regular Advisor

Re: Problems with crontab and scp

Hi,

 

I am attaching the output of tusc . Could you please check the output for the server ussecavldnaut1. This is one of the server which i am facing issue.

 

Laiju.C.Babu
laiju.c.babu
Regular Advisor
Solution

Re: Problems with crontab and scp

Hi  Team,

 

Thanks a lot for the help.  The issue is resolved . The problem was with the time zone . The main servers was on GMT and the clients having EDT.  So i just changed  execution time of script in crontab. Now its working fine . Thanks a lot for your help.

 

Regards

 

Laiju.C.Babu