Differences

This shows you the differences between two versions of the page.

misc:wait_for [2009/11/15 10:41]
Robin Wood created
misc:wait_for [2009/11/19 09:01] (current)
Robin Wood
Line 3: Line 3:
I'm currently downloading all the DefCon videos and rather then try to grab them all at once I've broken the list down into batches. I wanted an automated way to start each batch when the previous one had finished so I wrote this little script to wait for something to finish then do something else. I'm currently downloading all the DefCon videos and rather then try to grab them all at once I've broken the list down into batches. I wanted an automated way to start each batch when the previous one had finished so I wrote this little script to wait for something to finish then do something else.
-<code>+<code bash>
#!/usr/bin/env bash #!/usr/bin/env bash
Line 19: Line 19:
An alternative way to do this is using the pidof command to get the process ids of the script you are waiting for and checking if that comes back empty, here is that version. An alternative way to do this is using the pidof command to get the process ids of the script you are waiting for and checking if that comes back empty, here is that version.
-<code>+<code bash>
#!/usr/bin/env bash #!/usr/bin/env bash
misc/wait_for.txt · Last modified: 2009/11/19 09:01 by Robin Wood