• 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: Issuing commands to shell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issuing commands to shell


  • Subject: Re: Issuing commands to shell
  • From: "koenig.yvan" <email@hidden>
  • Date: Fri, 09 Nov 2012 11:16:22 +0100


Le 09/11/2012 à 10:27, Jan-Bultereys <email@hidden> a écrit :

hi Alex,

I think this has to do with the fact that do shell script is using /bin/sh and terminal is using /bin/bash

try:
do shell script "/bin/bash -c 'kill SIGSTOP 580'"

best regards,
jan


Hello 

this command returns :

error "/bin/bash: line 0: kill: SIGSTOP: arguments must be process or job IDs
/bin/bash: line 0: kill: (580) - No such process" number 1

The file kill is stored as :
Hfs+ format :
"Macintosh HD:bin:kill"

Posix format :
"/bin/kill"

I tried :

do shell script "kill -'SIGSTOP 580'"

error "sh: line 0: kill: SIGSTOP 580: invalid signal specification" number 1

I tried also a command passed in an other message :

do shell script "kill -STOP 580"

and got :
error "sh: line 0: kill: (580) - No such process" number 1

I tried to quote the parameters:
do shell script "kill -'STOP 580'"

and got :
error "sh: line 0: kill: STOP 580: invalid signal specification" number 1

At last, I tried :
do shell script "set +o posix; kill -SIGSTOP 580"

and got :
error "sh: line 0: kill: (580) - No such process" number 1

I've no other track.

Yvan KOENIG (VALLAURIS, France) vendredi 9 novembre 2012 11:16:15





 _______________________________________________
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: 
 >Issuing commands to shell (From: Alex Zavatone <email@hidden>)
 >Re: Issuing commands to shell (From: Jan-Bultereys <email@hidden>)

  • Prev by Date: Re: Issuing commands to shell
  • Next by Date: Re: Issuing commands to shell
  • Previous by thread: Re: Issuing commands to shell
  • Next by thread: Re: Issuing commands to shell
  • Index(es):
    • Date
    • Thread