realbasic-nug
[Top] [All Lists]

Re: Shell Help2

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Shell Help2
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Fri, 30 Aug 2002 07:47:00 -0700
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        |
`------------------------------------------------------------------'


<Prev in Thread] Current Thread [Next in Thread>