[colug-432] Scripting
pat at linuxcolumbus.com
pat at linuxcolumbus.com
Sun May 19 10:35:50 EDT 2019
find the pids of your background jobs and see if they are still alive I
would guess.
On 2019-05-19 09:56, Vince Herried wrote:
> 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 B
>
> 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
> _______________________________________________
> colug-432 mailing list
> colug-432 at colug.net
> http://lists.colug.net/mailman/listinfo/colug-432
More information about the colug-432
mailing list