• 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: mutli instances test (was Re: Multi-threaded)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mutli instances test (was Re: Multi-threaded)


  • Subject: Re: mutli instances test (was Re: Multi-threaded)
  • From: Graff <email@hidden>
  • Date: Mon, 10 Nov 2003 21:59:27 -0500

Yep, breezed right by that. Nice catch!

That makes a lot of sense now that you've pointed it out. Thanks.

- Ken

On Nov 10, 2003, at 2:22 PM, Christopher Nebel wrote:

The problem is that just "&" isn't good enough to disconnect the process under "do shell script" -- it's still waiting for stdout and stderr to return end-of-file. Use the following incantation instead:

do shell script "command > file_path 2>&1 &

If you don't care about the output (which you don't in this case), use "/dev/null" for file_path. Incidentally, you'd have much the same problem using backquotes in Perl, though Perl only watches stdout, so you wouldn't need the "2>&1" part.
_______________________________________________
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: Multi-threaded - thanks (From: "John C. Welch" <email@hidden>)
 >Re: Multi-threaded - thanks (From: Bill Briggs <email@hidden>)
 >Re: Multi-threaded - thanks (From: Shane Stanley <email@hidden>)
 >Re: Multi-threaded - thanks (From: Bill Briggs <email@hidden>)
 >Re: Multi-threaded - thanks (From: Christopher Nebel <email@hidden>)
 >mutli instances test (was Re: Multi-threaded) (From: "leo" <email@hidden>)
 >Re: mutli instances test (was Re: Multi-threaded) (From: Graff <email@hidden>)
 >Re: mutli instances test (was Re: Multi-threaded) (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: applescript-users digest, Vol 3 #2146,#2145,#2144....
  • Next by Date: Re: weird UI scripting problems.
  • Previous by thread: Re: mutli instances test (was Re: Multi-threaded)
  • Next by thread: Re: Script Editor - Feature Request
  • Index(es):
    • Date
    • Thread