Re: Issuing commands to shell
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 :
Posix format :
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