[colug-432] Scripting

Vince Herried Vince at planetvince.com
Sun May 19 09:56:27 EDT 2019

I wrote a script to download a couple of files .bz2 files from the internet.
then I need to send a copy to another machine in my LAN and uncompress them.

So I thought to add the copy to the other machine with scp.
I want to make the scp asynchronous.  But how do I alert myself when the
async scp is done?

in pigeon something like this is going on.

0. if new version of file A
1. then  download from internet
2. Wait for download to complete
3. start async scp to other host in my LAN
   scp file?.bz2 otherhost:/dir &

4. check new version of file B, if found repeat steps 1 - 3 above with file

5. wait for all async to complete.
6. unzip the files and remove the compressed versions.

So How do I perform step 5?
Vince's outgoing mail
Vince at planetvince.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.colug.net/pipermail/colug-432/attachments/20190519/03e89221/attachment.html 

More information about the colug-432 mailing list