Re: 'do shell script'-bug?
Re: 'do shell script'-bug?
- Subject: Re: 'do shell script'-bug?
- From: Jon Pugh <email@hidden>
- Date: Fri, 11 Jan 2002 20:53:45 -0800
At 4:31 AM +0100 1/12/02, christian vick wrote:
>
If i use...
>
>
tell application "Terminal"
>
do script with command "echo password | sudo bless -folder9
>
\"/Volumes/9disk/System Folder 922\" -setOF"
>
end tell
>
>
... it works. But if i use...
>
>
do shell script "echo password | sudo bless -folder9 \"/Volumes/9disk/System
>
Folder 922\" -setOF"
>
>
... i get an error "sudo: bless: command not found".
>
Is this a bug or am i missing something?
Could it be because you had previously entered a password for sudo in the terminal that was running, but not in the process running the script (ScriptRunner, I believe it is called)? That could account for it.
Jon