How to write both output and error stream to the same file?

by sabitha 2012-06-06 11:19:39

How to write both output and error stream to the same file?



In Unix/Linux we can use pipes to write output and error streams to a file. One can even write them to the same file.

But the below command helps us to write both to the same file but maintaining the order.

For bash ,

swipl -s jobshop.chr < CHRInput &> output

Tagged in:

667
like
0
dislike
0
mail
flag

You must LOGIN to add comments