Monitoring SCP for completion


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Monitoring SCP for completion
# 1  
Old 03-28-2008
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  
Old 03-29-2008
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  
Old 03-29-2008
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

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash-Completion, an example

Hello I've followed several bash-completion threads, usualy none were answered, because of obvious reasons. (of which i'm just aware since a day or a few) Non-the-less, because i was writing scripts, i never considered it to be possible to add this functionality. Also, because i though that... (0 Replies)
Discussion started by: sea
0 Replies

2. Shell Programming and Scripting

Identifying the file completion

Hi, A script is running for multiple databases so data is also being populated for multiple DBs in a.txt file. I need to rename this file once all the data is populated. Kindly suggest me How can I check once file is populated completely before renaming? Thanks in advance. (3 Replies)
Discussion started by: ravigupta2u
3 Replies

3. UNIX for Dummies Questions & Answers

Background Process Completion

I have my unix machine configured to run locate.updatedb on login in the background and after it completes, when I run a command such as ls-- the console returns the results of ls and + Done sudo /usr/libexec/locate.updatedbIs there... (3 Replies)
Discussion started by: Prodiga1
3 Replies

4. Shell Programming and Scripting

bash completion

hello, I have been trying for a couple days to figure this out to no avail. I am converting some csh code to bash. I have converted everything except the completion code. #bashrc (I set this alias in my bashrc) alias test='source ${PATH}/test.sh' #${PATH}/test.sh (returns some aliases and... (0 Replies)
Discussion started by: platypuus
0 Replies

5. UNIX for Advanced & Expert Users

how to get the percentage of completion? during a copy!

Hi all, I would like to know how to introduce that progress bar or the %of completion during copy of files... In the sense,I am copying a few files onto RAM at the boot time.... These 2 files combined take about 550mb of ram,so instead of just having a blinking cursor till the copy is over,i... (7 Replies)
Discussion started by: wrapster
7 Replies

6. Shell Programming and Scripting

Check for FTP completion

Hello, I am sure a lot of you have come across this situation, and I want to know how you have or would handle this situation: - A file gets ftp'ed (import) regularly to a directory into our environment. Is there a way to check whether this file has completed ftp'ing. * I don't want my... (1 Reply)
Discussion started by: ChicagoBlues
1 Replies

7. UNIX for Advanced & Expert Users

line completion in vim

how we achive line completion and word completion in vim editor? (2 Replies)
Discussion started by: lakshmananindia
2 Replies

8. Shell Programming and Scripting

Ensure the file completion ?

Hi, I would like to copy a file from one location to another. But that particular file is not fully loaded. I like to copy a file once it's fully loaded or complete file. How to ensure whether file is fully loaded or complete file?. -Thambi (5 Replies)
Discussion started by: thambi
5 Replies

9. UNIX for Dummies Questions & Answers

Tab completion gubbins

Hello all How do you configure unix terminal to list files as you tab complete. I'm using a unix terminal at work and when i first started tab complete on a folder would list all matches if there were more than one. eg. monkey.xml mon.xml monkeyboy.xml in one folder if i cd into... (2 Replies)
Discussion started by: GNUless
2 Replies

10. Shell Programming and Scripting

file name completion

I'ld like to enable file name completion in ksh88 on AIX 5.2. My terminal is set to xterm. I've set the shell editor to emacs and ampped the arrow keys. Is there a way to map the tab key to a command like ESC= or any other file name completion command in emacvs that I may be not aware of since I'm... (1 Reply)
Discussion started by: rein
1 Replies
Login or Register to Ask a Question