i have been trying to figure why i can not get an output log from another terminal when i launch some script with its output to a file .
when i :
Quote:
setsid sh -c "exec somecommand > log <> /dev/tty9 >&0 2>&1" &
|
i get the tty opened with the command , but i am unable to get anything on the log file .
even if i :
Quote:
setsid sh -c "exec somecommand | tee log <> /dev/tty9 >&0 2>&1" &
|
i still can not get the log file from that command .
What happens is that log file is created but it is empty
I am launching setsid from another script , so that is why i have the switch "-c" .