[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: shell question: Ambiguos output redirect



Does user 'alex' have csh or similar as their shell?  If so, that 
might explain it.  You've gone bourne shell -type redirection and 
the csh gets confused.

One other point is that 'cmd 2>&1 > file' is not going to put stderr 
and stdout in file.  'cmd > file 2>&1' is what you want.  Or (back 
with the csh) 'cmd >& file' to do the same thing.

This isn't really bsd-specific btw, so you can discover more on any 
of the usual unixy sites like www.ugu.com.

shriman

-----Original Message-----
From: Alexander Farber [mailto:alex_(_at_)_kawo2_(_dot_)_rwth-aachen_(_dot_)_de]
Sent: 09 July 2001 21:28
To: misc_(_at_)_openbsd_(_dot_)_org
Subject: shell question: Ambiguos output redirect