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
Check for FTP completion ChicagoBlues Shell Programming and Scripting 1 02-28-2008 07:52 PM
Tab completion in csh James McMurray Shell Programming and Scripting 3 12-12-2007 10: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 10:25 AM
file name completion rein Shell Programming and Scripting 1 10-10-2005 08:57 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
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
  #2 (permalink)  
Old 03-29-2008
ShawnMilo ShawnMilo is offline
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
  #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
Sponsored Links
Closed Thread

Bookmarks

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 04:02 AM.


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