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

Re: dbootstrap: system and err msgs

> [This is a resend -- the other one didn't seem to make it...]
> Where is the code in dbootstrap to redirect errors to tty3 ?
> It seems to me we should define our own "system" wrapper function,
> which redirects stderr, and maybe even logs to tty3, i.e., "running
> cmd 'foo'" or whatever.  Of course, it should deal with serialconsole
> as well...
> Is this a good idea?  Any volunteers? I'm not much of a C hacker...

Maybe this should be done explicitly on a command basis rather than have
a system wrapper which redirect all outputs to stderr, otherwise we can't
redirect the error output of the various commands included in the busybox
executable. Why don't just start dbootstrap with:

    exec dbootstrap 2>/dev/tty3

Massimo Dal Zotto

|  Massimo Dal Zotto               email: dz@cs.unitn.it               |
|  Via Marconi, 141                phone: ++39-0461534251              |
|  38057 Pergine Valsugana (TN)      www: http://www.cs.unitn.it/~dz/  |
|  Italy                             pgp: finger dz@tango.cs.unitn.it  |

Reply to: