<div dir="ltr"><div>I wrote a script to download a couple of files .bz2 files from the internet.</div><div>then I need to send a copy to another machine in my LAN and uncompress them.</div><div><br></div><div>So I thought to add the copy to the other machine with scp.</div><div>I want to make the scp asynchronous.  But how do I alert myself when the async scp is done?</div><div><br></div><div>in pigeon something like this is going on.</div><div><br></div><div>0. if new version of file A<br></div><div>1. then  download from internet <br></div><div>2. Wait for download to complete<br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>3. start async scp to other host in my LAN <br></div><div>   scp file?.bz2 otherhost:/dir &amp;</div><div><br></div><div>4. check new version of file B, if found repeat steps 1 - 3 above with file B<br></div><div><br></div><div>5. wait for all async to complete.</div><div>6. unzip the files and remove the compressed versions.<br></div><div><br></div><div>So How do I perform step 5?<br></div><div dir="ltr">---<br>Vince&#39;s outgoing mail<br></div><div><a href="mailto:Vince@planetvince.com" target="_blank">Vince@planetvince.com</a><br><br></div></div></div></div></div></div></div></div></div>