The UNIX and Linux Forums  

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
Check for FTP completion ChicagoBlues Shell Programming and Scripting 1 02-28-2008 06:52 PM
Tab completion in csh James McMurray Shell Programming and Scripting 3 12-12-2007 09:31 AM
Job Completion Information? davidfrank UNIX for Dummies Questions & Answers 3 08-02-2007 05:08 PM
Tab Completion on Solaris 10 annointed3 UNIX for Dummies Questions & Answers 2 01-04-2006 09:25 AM
file name completion rein Shell Programming and Scripting 1 10-10-2005 08:57 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-28-2008
thumper thumper is offline VIP Member  
Supporter
 

Join Date: Feb 2005
Posts: 49
Monitoring SCP for completion

I have several servers, A, B, & C that run various routines then scp the results to server X. On X I then have to do some data manipulation with the received files before sending the files on to another location. Because of policy here I cannot pull the files from servers A, B & C, but have to allow them to initiate the transfer.
What I would like to be able to do is, on server X, monitor the receipt of the files from A,B & C via a script and when the transfer is complete kick off the data parsing routines that run on X.
Can someone tell me how to monitor the incoming scp sessions so that I can identify each one and tell when the transfer is complete for each of the servers?

Thanks
Thumper
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-28-2008
Registered User
 

Join Date: Jun 2006
Posts: 252
One solution is to create a tiny "flag" file that you send last. That way, the receiving server can just wait until that file exists and it will know that the real files have arrived.

I don't know if you can predict the order in which the files would be sent in an scp session, but you can always do a quick second scp session to send the flag file.

ShawnMilo
Reply With Quote
  #3 (permalink)  
Old 03-29-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
It copies the files in the order you give them on the command line, n'est-ce pas? If you use wildcards, I would expect the wildcard expansion to simply expand one token into many, so you can still say

Code:
scp file* and* stuff* .signalfile server:path/on/server
Reply With Quote
Google The UNIX and Linux Forums
Reply

Bookmarks

Tags
None

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 11:59 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66