Article 4VJV5 Setsid execute on another tty and log the output

Setsid execute on another tty and log the output

by
pedropt
from LinuxQuestions.org on (#4VJV5)
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" .latest?d=yIl2AUoC8zA latest?i=pOd4_859zpU:LJJeEfY88cY:F7zBnMy latest?i=pOd4_859zpU:LJJeEfY88cY:V_sGLiP latest?d=qj6IDK7rITs latest?i=pOd4_859zpU:LJJeEfY88cY:gIN9vFwpOd4_859zpU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments