Operating System - HP-UX
1834461 Members
3123 Online
110067 Solutions
New Discussion

Time Difference in FTPing files

 
panchpan
Regular Advisor

Time Difference in FTPing files

HP-UX 11.0

When I SFTP files manually, it gets placed in the remote server immediately. But if the same task is being done by my shell script (batch job) - it is placing the file in around an hour time difference. When I see the logs of my batch job it shows immediate transfer was done.

Could one please help on this ?

Thanks a lot.
Pankaj.
5 REPLIES 5
Peter Godron
Honored Contributor

Re: Time Difference in FTPing files

Pankaj,
is your batch job running at a lower priority than the manual process? This would mean it would run slower.
RAC_1
Honored Contributor

Re: Time Difference in FTPing files

Can we see the script?
After every script statement, put date command compare what is taking time. Like follows.

echo "I am sftping a file"
date
some_other_command
date
There is no substitute to HARDWORK
panchpan
Regular Advisor

Re: Time Difference in FTPing files

Hello.
I have added date in shell and it shows the correct / current time and finishes successfully. But in the remote server file has not come :-(

Please advise.
RAC_1
Honored Contributor

Re: Time Difference in FTPing files

If you do not mind, post script. Are time staps on both systems correct? Do both systems have same time set on them?
There is no substitute to HARDWORK
panchpan
Regular Advisor

Re: Time Difference in FTPing files

Hello.
The problem got solved, I got confirmation from customer that some of them were deleting files immediately without the knowledge of main person for some testing purpose.

Thanks a ton for your help !