perl script running...
perl script running...
- Subject: perl script running...
- From: Martha I Espinosa <email@hidden>
- Date: Thu, 6 Oct 2005 15:19:27 -0600
Hi,
I'm stuck on a piece of code that uses grep to see if a perl script
is running...
Here's what I have
do shell script "open -a /Applications/Utilities/Terminal.app /path
to perl script
set perlStatus to 0
repeat until perlStatus = 1
set status to do shell script "ps -x | grep perl"
if status is not equal to "" then
set perlStatus to 1
else
set perlStatus to 0
end if
end repeat
What I want to achive is: check to see if perl script is running and
if it is then keep waiting until it is done... If it's done running
then I want to quit terminal and continue with my applescript...
Thanks in advance
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden