• 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
Re: Spawning separate processes with "do shell script"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spawning separate processes with "do shell script"


  • Subject: Re: Spawning separate processes with "do shell script"
  • From: Adrian <email@hidden>
  • Date: Sun, 24 Mar 2002 13:10:02 -0500

I have tried this, but it doesn't work. I believe that AppleScript is not blocking on output, but rather waiting for the sh process to exit. Is there perhaps a more general way to fork off the command? Any other suggestions would be welcome.


On Sunday, March 24, 2002, at 10:11 AM, garbanzito wrote:

at 2002 03 24, 01:13 -0500, they whom i call Adrian wrote:
Hello.
Is it possible to start a process from a "do shell script" command without having to wait for it to finish?

AppleScript is blocking on output (both stdout and stderr)
from the process. if you don't care what the process
outputs, use this:

do shell script "whatever >/dev/null 2>&1 &"

otherwise direct the output to files.

-- steve harley email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Spawning separate processes with "do shell script"
      • From: garbanzito <email@hidden>
References: 
 >Re: Spawning separate processes with "do shell script" (From: garbanzito <email@hidden>)

  • Prev by Date: Re: what is the best way to 'unset' a variable
  • Next by Date: Zoom window / fit screen? How to with applescript?
  • Previous by thread: Re: Spawning separate processes with "do shell script"
  • Next by thread: Re: Spawning separate processes with "do shell script"
  • Index(es):
    • Date
    • Thread