![]() |
|
|
google unix.com
|
|||||||
| Forums | Casino | Register | Forum Rules | Links | Albums | FAQ | Members List | 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 |
| 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 |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
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 |
| Sponsored Links |
|
|||
|
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 |
|
|||
|
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 |
|||
| Google The UNIX and Linux Forums |
![]() |
| Bookmarks |
| Tags |
| None |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|