LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 04-17-2010, 08:11 AM   #1
dorianrenato
LQ Newbie
 
Registered: Apr 2010
Posts: 3

Rep: Reputation: 0
Question 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...

Last edited by dorianrenato; 04-17-2010 at 08:14 AM.
 
Old 04-18-2010, 08:58 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,716

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


Reply

Tags
capture, io, output, redirection


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to redirect the output of exec command output in perl? sudhap85 Linux - Newbie 3 08-28-2009 03:35 PM
Why doesn't tee $(tty) produce output on the current terminal? openSauce Linux - Newbie 10 03-17-2009 06:09 PM
Redirect terminal output to file AND terminal shan Linux - General 3 09-29-2006 08:36 AM
Redirect output jimwelc Linux - Newbie 3 05-11-2006 11:10 AM
how to redirect the output of a terminal? cpukiller Linux - Networking 5 11-10-2004 07:07 AM


All times are GMT -5. The time now is 09:21 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration