On Sat, Dec 07, 2002 at 08:44:24PM +0800, Andy Sy wrote:
> 2) How do you prevent echoing of an executed
> bash command within a script. I'm looking
> for something analogous to:
> 
> @d:\foo\bar.exe
> 
> in a DOS batch file where the command
> d:\foo\bar.exe is not echoed to the
> screen.
> 

I'm not really sure, but given the command named _command_:

_command_ 2>/dev/null >/dev/null

(no need for the second > /dev/null, but in some circumstances wherein you
really want a "silent" standard output, adding the second > /dev/null).

-- 


Paolo Alexis Falcone
[EMAIL PROTECTED]
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to