[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [FW-1] Too large log file
Greetings! tolits wrote: thanks. Im just confused with Channel 2, is it the same as errorlevel? No - that would be the shell variable $? In Unix you have one input and two output channels: STDIO - the standard input and output STDERR - output for error and debug messages (usually) With this you can pipe the ins and outs of commands ( e.g. cat *.log | sort | uniq > error_summary.log ) and still see error messages which otherwise won't show up in the pipe (in above example: no error messages in summe.txt). With 2>&1 you plumb the separate STDERR pipeline back into the standard STDIO. With > /dev/null you plug the output into the file or device (here: the data dump /dev/null). HTH Volker -- Volker Tanger <[email protected]> Wrangelstr. 100, 10997 Berlin, Germany DiSCON GmbH - Internet Solutions http://www.discon.de/ =============================================== To unsubscribe from this mailing list, please see the instructions at http://www.checkpoint.com/services/mailing.html ===============================================
|