LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   redirect standart output to current terminal (https://www.linuxquestions.org/questions/linux-newbie-8/redirect-standart-output-to-current-terminal-802546/)

dorianrenato 04-17-2010 08:11 AM

redirect standart output to current terminal
 
Hi.
i have a process launch by another app, i want to see the output (that is in console) in a terminal (gnome-terminal or tty); how can i capture de standart I/O from a process.

my process (aria2) is launch by firefox and the output of ps is like:


# ps aux | grep aria2
dorian 30289 2.8 0.1 12148 4048 ? D 07:08 0:03 aria2c --continue -d /home/downloads/so/suse --referer=http://software.opensuse.org/112/en


...is running but i cant see the output (download state), how can i capture or redirect standart I/O to my terminal to get something like the output of:


$ aria2c --continue -d /home/downloads/so/suse --referer=http://software.opensuse.org/112/en --load-cookies=/tmp/flashgot.h2fnxf84.default/cookies --input-file=/tmp/flashgot.h2fnxf84.default/flashgot.fgt

[#1 SIZE:6.7MiB/4,289.3MiB(0%) CN:5 SPD:25.3KiBs ETA:48h01m01s]

thank you...

kbp 04-18-2010 08:58 PM

You could try editing the command to '... | tee -a /tmp/aria.log' then just 'tail -f /tmp/aria.log' from your console


All times are GMT -5. The time now is 05:30 AM.