The background: I have a script in /etc/cron.daily that backs up to a
remote server. It was failing and generating stderr messages, but for some
reason Slackware's "run-parts" script executes the scripts in the cron
directories like this:
$SCRIPT 2>&1
so all the "echo foo 1>&2" in the world won't generate any stderr. It was
months before I noticed something was wrong. Was lucky to catch it!
I'm still a Slackware fan but this is apparently broken!
Judah
On Wed, 4 Oct 2006, Rob Sherwood wrote:
On Wed, Oct 04, 2006 at 12:41:09AM -0400, J. Milgram wrote:
thanks everyone - I wish the man page were as useful. So if I understand
correctly, a sequence of redirects </em>for a given command</em> just gets
processed one after another overwriting previous redirects, and this all
gets resolved before any i/o takes place ... (?)
Exactly: it makes sense to me if you just think of everything being
implemented with fdup(2) (which I imagine it is).
- Rob
.