At 4:36 PM +0200 8/30/02, Bl at cking wrote:
Thanks Joseph.. the correct construct should be:
password|sudo -S /usr/sbin/netstat -x?
No, as Frank said you'll need to send your password through "echo"
since otherwise, the shell will interpret your password as a command
and attempt to execute it. So it should be something like:
echo "password" | sudo -S /usr/sbin/netstat -x
Cheers,
- Joe
--
,------------------------------------------------------------------.
| Joseph J. Strout REAL Software, Inc. |
| joe at realsoftware dot com http://www.realsoftware.com |
`------------------------------------------------------------------'
|