S
seifyr
What sequence of calls to open, dup and/or dup2 do you perform in your
program in order to achieve the following effects?
$prog1>file 2>&1
and
$prog2 2>&1 > file
I understand which each line does, but I dont understand how to use dup
and dup2 to acheive this. I don't necessarily need code just an
understanding of how do accomplish this.
program in order to achieve the following effects?
$prog1>file 2>&1
and
$prog2 2>&1 > file
I understand which each line does, but I dont understand how to use dup
and dup2 to acheive this. I don't necessarily need code just an
understanding of how do accomplish this.