The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-24-2008
gingervitus gingervitus is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 1
Post File Missing When Grabbing Files from SFTP Server using SCP Command

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.
  #2 (permalink)  
Old 12-24-2008
csorhand csorhand is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 81
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
Closed Thread

Bookmarks

Tags
crontab, scp, script, sftp

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0