• 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: running shell in background....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: running shell in background....


  • Subject: Re: running shell in background....
  • From: "Mark J. Reed" <email@hidden>
  • Date: Sun, 2 Sep 2007 08:31:17 -0400

On 9/2/07, Kathryn Tate <email@hidden> wrote:
>
> On Sep 2, 2007, at 3:18 AM, Harald Schneider wrote:
> Is there a way to start a shell script as a background process ?
>
> In shell language:
> at the prompt:
>
> myshellscript &
>
> The key is appending the & sign after the script name and a space.

The space is not strictly necessary, actually.  But adding the
ampersand is not enough if you're running it from AppleScript via "do
shell script", because the background job will still be attached to
the "terminal" (not a visible one, in this case) that AppleScript
started it in.  Hence the redirections in my response.


--
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: running shell in background....
      • From: Doug McNutt <email@hidden>
References: 
 >running shell in background.... (From: Kathryn Tate <email@hidden>)

  • Prev by Date: running shell in background....
  • Next by Date: Re: running shell in background....
  • Previous by thread: running shell in background....
  • Next by thread: Re: running shell in background....
  • Index(es):
    • Date
    • Thread