• 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 procces in background
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do shell procces in background


  • Subject: Re: do shell procces in background
  • From: Emmanuel <email@hidden>
  • Date: Wed, 24 Sep 2003 21:54:45 +0200

At 12:59 PM -0500 24/09/03, Martin Meneses wrote:
>Hi, I'm working with "do shell " instruction, but I have problem when I send the remote command, the application wait until the command is executed. It doesn't release it.
>
>I've read items of the technical Note TN2065 about backgroud process.
>I tried this command:
>do shell script "command > file_path 2>1 &"

Too ignorant to know whether that's relevant but I use one additional ampersand:

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

About that, note the handy "smilepause" Smile's command which allows you to pause your script without blocking the machine:

-------------------- off the top of my head
repeat while command is in (do shell script "ps -auxc")
smilepause 0.1 -- other tasks run, including launching another script
end repeat
-- go on with that script, "command" is done
--------------------

Emmanuel
_______________________________________________
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: 
 >do shell procces in background (From: Martin Meneses <email@hidden>)

  • Prev by Date: Re: Count and rename files
  • Next by Date: Re: 8-bit on mailing list (was Re: Wierd error)
  • Previous by thread: do shell procces in background
  • Next by thread: external parameter
  • Index(es):
    • Date
    • Thread