![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to get multiple files using sftp from a windows server | ramky79 | SUN Solaris | 3 | 12-10-2008 08:47 PM |
| ssh-xfer: Quickly grabbing files over an existing SSH connection | iBot | UNIX and Linux RSS News | 0 | 08-08-2008 04:20 AM |
| Grabbing result of sql command | hern14 | UNIX for Dummies Questions & Answers | 3 | 07-23-2008 02:40 PM |
| Missing core file using ssh + command | kclittle | UNIX for Advanced & Expert Users | 5 | 03-26-2008 05:36 PM |
| SFTP file from unix box to a NT server | queenie680 | UNIX for Dummies Questions & Answers | 5 | 11-12-2007 06:41 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi,
I have this problem where sometimes my files would go missing when I schedule my crontab to run the SCP command to get file from the SFTP server. My crontab will run the scripts at an interval of 3 minutes (between the two scripts) The following is the setting in my crontab. 0,6,12,18,24,30,36,42,48,54 0-8 * * 1-6 /usr/alliance/scripts/script1 3,9,15,21,27,33,39,45,51,57 0-8 * * 1-6 /usr/alliance/scripts/script2 After I've done the testing, I checked on the log and I found this message:- >>>> Wed Dec 24 03:25:58 TAIST 2008 Start of SCP RECEIVE .. mttest1.good | 8B | 0.0 kB/s | TOC: 00:00:01 | 100% total 8 -rw------- 1 scpus33 alliance 8 Dec 24 03:27 mttest1.good <<<< Wed Dec 24 03:26:09 TAIST 2008 End of SCP RECEIVE ... but the weird thing is, the file mttest1.good was not in my unix server. This is the log of the file that was successfully transferred to my unix server:- >>>> Wed Dec 24 05:48:00 TAIST 2008 Start of SCP RECEIVE .. total 8 -rw------- 1 scpus33 alliance 8 Dec 24 05:48 mttest6.good <<<< Wed Dec 24 05:48:10 TAIST 2008 End of SCP RECEIVE ... Hope somebody can help me with this problem. |
|
||||
|
gingervitus,
Did you try to simulate and run the script manually to check if the script is putting the data in the right location? If you can paste the script code here it will be better to analyze and troubleshoot your problem. Cheers |
![]() |
| Bookmarks |
| Tags |
| crontab, scp, script, sftp |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|