I am trying to get console log of a process, that is spawned by a parent process (program is coded in Qt
). Strangely the stdout and stderror are pipes. How should I view the console logs ?
Process A (14543 is the pid of A
) -> Launch Process B (14552 is the pid of B
)
I can see the console logs of Process A.
tux@kamath:/$ ls -l /proc/14552/fd/
total 0
lr-x------ 1 tux tux 64 Dec 16 11:17 0 -> pipe:[8968050]
l-wx------ 1 tux tux 64 Dec 16 11:17 1 -> pipe:[8968051]
l-wx------ 1 tux tux 64 Dec 16 11:15 2 -> pipe:[8968052]
tux@kamath:/$ ls -l/proc/14543/fd
total 0
lrwx------ 1 tux tux 64 Dec 16 11:25 0 -> /dev/pts/21
lrwx------ 1 tux tux 64 Dec 16 11:25 1 -> /dev/pts/21
lrwx------ 1 tux tux 64 Dec 16 11:15 2 -> /dev/pts/21