It is currently Tue, 07 Dec 2021 02:50:45 GMT



 
Author Message
 2>&1 /dev/null

I don't think you tried this, as there are still two errors lurking:
there is a missing redirection, and the ordering is wrong.  This
version does what the original poster asked for.

    DEBUG=">/dev/null 2>&1"
    eval rpm -e director-db $DEBUG

In passing, I will point out that in my experience tossing away
standard error is evil.  Of course, it's fine for a one-off, but if
this is going into a script, or a cron entry I strongly recommend
taking the extra time to record the unwanted output somewhere.

Tim.
--
Tim Goodwin   | "Not ideal, I grant you, but life's
Leicester, UK | like that." -- Ian Batten



 Sun, 20 Jul 2003 00:46:20 GMT   
 
   [ 1 post ] 

Similar Threads

1. 2>&1 /dev/null

2. setting 2>&1 >>/dev/null for a chunk of script

3. BOURNE - exec >/dev/null 2>&1 wierdness

4. rsh machine -n 'command >&/dev/null </dev/null &'

5. please explain: 2>$1 >/dev/null

6. cp /dev/null or cat /dev/null

7. >/dev/msglog 2<>/dev/msglog </dev/console

8. >/dev/msglog 2<>/dev/msglog </dev/console


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software