Shell

Hershel Fisch hershf at rgllc.us
Thu Oct 26 18:05:06 EDT 2006


On 10/21/06 10:33 PM, "Sarah Reichelt" <sarah.reichelt at gmail.com> wrote:

> put "#!/bin/sh" & cr into tScript
> put "pw=" & quote & tPass & quote & cr after tScript
> put "echo $pw | sudo -S - postgres" & cr after tScript
> put "/usr/local/bin/postmaster -D /usr/local/pgsql/data -i" & cr after tScript
> put shell(tScript) into tCheck


This is the result
sudo: '-' requires an argument
usage: sudo -K | -L | -V | -h | -k | -l | -v
usage: sudo [-HPSb] [-p prompt] [-u username|#uid]
            { -e file [...] | -i | -s | <command> }
postmaster cannot access the server configuration file
"/usr/local/pgsql/data/postgresql.conf": Permission denied

Thanks, Hershel




More information about the use-livecode mailing list