Hallo Forum,
kann ich irgendwie (mit tee oder ohne) die Standardausgabe so duplizieren, dass sie auf Standart-Error und Standart-Out rauskommt?
Druckbare Version
Hallo Forum,
kann ich irgendwie (mit tee oder ohne) die Standardausgabe so duplizieren, dass sie auf Standart-Error und Standart-Out rauskommt?
echo foo | tee /dev/stderr
foo
foo
Oh Mann, auf das Einfachste kommt man manchmal einfach nicht...
Danke
Hey :)
Ich habe das mal entdeckt, als ich mir die Scripte unter /etc/periodic/* genauer ansah.
funktioniert aber nur unter Linux, unter HP-UX gibt es kein /dev/stderr...
und /dev/fd/2 ?
gibt es auch nicht. HP-UX 10.20...
man stdin sollte es aber geben ;)