Waiting for 'shell'

Mike Bonner bonnmike at gmail.com
Tue Nov 1 19:18:09 EDT 2011


Oh cool. Yep, that could be easily used as an indication that the launched
process has completed. That or ps would both work on mac or linux.

so something like

launch "/usr/bin/myprocess"


then a loop that does a shell('ps") then parse the output to make see if
the process is still active.
so
put shell("ps") into tShell
filter tShell with "*myprocess*"
at which point if the number of lines in tShell > 0 its not done yet.



More information about the use-livecode mailing list