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
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. UNIX for Dummies Questions & Answers
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
3. Shell Programming and Scripting
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
4. UNIX for Advanced & Expert Users
how we achive line completion and word completion in vim editor? (2 Replies)
Discussion started by: lakshmananindia
2 Replies
5. Shell Programming and Scripting
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
6. UNIX for Advanced & Expert Users
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
7. Shell Programming and Scripting
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
8. UNIX for Dummies Questions & Answers
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
9. Shell Programming and Scripting
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
10. Shell Programming and Scripting
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
yppush(1M) System Administration Commands yppush(1M)
NAME
yppush - force propagation of changed NIS map
SYNOPSIS
/usr/lib/netsvc/yp/yppush [-v] [-h host] [-d domain] [-p #parallel-xfrs] mapname
DESCRIPTION
yppush copies a new version of a Network Information Service (NIS) map from the master NIS server to the slave NIS servers. It is normally
run only on the master NIS server by the Makefile in /var/yp after the master databases are changed. It first constructs a list of NIS
server hosts by reading the NIS ypservers map within the domain. Keys within the ypservers map are the ASCII names of the machines on which
the NIS servers run.
A "transfer map" request is sent to the NIS server at each host, along with the information needed by the transfer agent (the program that
actually moves the map) to call back the yppush. When the attempt has completed (successfully or not), and the transfer agent has sent
yppush a status message, the results can be printed to stdout. Messages are also printed when a transfer is not possible, for instance,
when the request message is undeliverable, or when the timeout period on responses has expired.
Refer to ypfiles(4) and ypserv(1M) for an overview of the NIS service.
OPTIONS
The following options are supported:
-d domain Specifies a domain.
-h host Propagates only to the named host.
-p #parallel-xfrs Allows the specified number of map transfers to occur in parallel.
-v Verbose. This prints messages when each server is called, and for each response. If this flag is omitted, only
error messages are printed.
FILES
/var/yp
Directory where NIS configuration files reside.
/var/yp/domain/ypservers.{dir, pag}
Map containing list of NIS servers to bind to when running in server mode.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
|ATTRIBUTE TYPE |ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWypu |
+-----------------------------+-----------------------------+
SEE ALSO
ypserv(1M), ypxfr(1M), ypfiles(4), attributes(5)
NOTES
The Network Information Service (NIS) was formerly known as Sun Yellow Pages (YP). The functionality of the two remains the same; only the
name has changed. The name Yellow Pages is a registered trademark in the United Kingdom of British Telecommunications PLC, and must not be
used without permission.
BUGS
In the current implementation (version 2 NIS protocol), the transfer agent is ypxfr(1M), which is started by the ypserv program. If yppush
detects that it is speaking to a version 1 NIS protocol server, it uses the older protocol, sending a version 1 YPPROC_GET request and
issues a message to that effect. Unfortunately, there is no way of knowing if or when the map transfer is performed for version 1 servers.
yppush prints a message saying that an "old-style" message has been sent. The system administrator should later check to see that the
transfer has actually taken place.
SunOS 5.10 26 Aug 1999 yppush(1M)