• 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: Do shell script question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do shell script question


  • Subject: Re: Do shell script question
  • From: Christopher Nebel <email@hidden>
  • Date: Fri, 5 Sep 2003 09:50:16 -0700

On Sep 4, 2003, at 2:12 PM, David Durkee wrote:

The commands I'm sending to do shell script work, it's just that the AppleScript (or the application running it) hangs, so I don't think there's a problem with the way the path string is formatted. (The path is quoted; the backslashes are escape characters for the quote characters around the path.) If there was, the server wouldn't start up, and it does.

I just tried writing a shell script for this. When I execute the shell script from Terminal, it works fine, and when I use do shell script from an AppleScript on it, it works, but hangs the AppleScript.

"do shell script" blocks until all the child processes return EOF. To get around this, say

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

See <http://developer.apple.com/technotes/tn2002/tn2065.html#Section5>.


--Chris Nebel
AppleScript Engineering
_______________________________________________
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.

References: 
 >Re: Do shell script question (From: David Durkee <email@hidden>)

  • Prev by Date: [ANN] BAUG Meeting News
  • Next by Date: Re: Searching for a folder in Applescript.
  • Previous by thread: Re: Do shell script question
  • Next by thread: Script to use as part of rule in Mail
  • Index(es):
    • Date
    • Thread