Linux: send all error to another program (PIPE)

You can use the option : 2>&1 for this purpose.

/mycommand.sh 2>&1 | mydescommand.sh

Leave a Reply

Your email address will not be published. Required fields are marked *