• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
perl script running...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: perl script running...
      • From: Dave Lyons <email@hidden>
  • Prev by Date: Re: finder archive
  • Next by Date: Re: perl script running...
  • Previous by thread: Re: Applescript-users Digest, Vol 2, Issue 635
  • Next by thread: Re: perl script running...
  • Index(es):
    • Date
    • Thread