• 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: Ignore responses from do shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ignore responses from do shell script


  • Subject: Re: Ignore responses from do shell script
  • From: Axel Luttgens <email@hidden>
  • Date: Sat, 09 Jul 2016 15:34:23 +0200

> Le 9 juil. 2016 à 14:51, Christopher Stone a écrit :
>
> […]
> Hey Phil,
>
> Well, that method fails here.
>
> The following script runs for a very long time as `ls` finishes, and only then does the display notification counter start up.
>
> ----------------------------------------
> set shCMD to "
> cd ~/;
> ls -R;
> "
>
> do shell script shCMD & " &> /dev/null &"
>
> […]

Hello Chris,

To fully detach the shell process, you need to make appear your sequence of commands as a single shell command; for example:

	set shCMD to "{ cd ~/; ls -R; }"

See the man page for bash(1), under "Compound Commands".

HTH,
Axel


 _______________________________________________
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


References: 
 >Ignore responses from do shell script (From: Phil Stokes <email@hidden>)
 >Re: Ignore responses from do shell script (From: Axel Luttgens <email@hidden>)
 >Re: Ignore responses from do shell script (From: Phil Stokes <email@hidden>)
 >Re: Ignore responses from do shell script (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Ignore responses from do shell script
  • Next by Date: Ignore responses from do shell script
  • Previous by thread: Re: Ignore responses from do shell script
  • Next by thread: Ignore responses from do shell script
  • Index(es):
    • Date
    • Thread