LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
  Search this Thread
Old 10-23-2009, 05:06 PM   #1
khdani
LQ Newbie
 
Registered: Jul 2006
Posts: 22

Rep: Reputation: 15
saving xterm output to file


hello,
i've a program which starts xterm and runs throught it,
all program's output is displayed in xterm.
how can i save or redirect the xterm output to file ?

thank you
 
Old 10-23-2009, 06:39 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531
If you start the xterm you could
- redirect to a file like 'xterm -e 'application --whatever-args it needs 2>&1> /path/to/logfile'' or
- redirect and view with 'xterm -e 'application --whatever-args it needs 2>&1 | tee /path/to/logfile'' or
- run the app under 'screen' and enable logging (default 'CTRL+A, SHIFT+H') or
- run the application under a logging shell wrapper like 'rootsh' which logs to file as well
to name just a few options.
If the application starts the xterm w/o user intervention then please post more information (name and such).
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
saving output from FIFO? slimshady Linux - Newbie 0 11-29-2007 12:18 PM
Saving the output of a file as a variable mrobertson Programming 5 07-08-2005 01:43 AM
xterm will not produce output with -lf parameter jarobman Linux - General 2 03-06-2005 03:12 AM
how to send the output to another xterm? abd_bela Programming 2 08-17-2003 01:28 PM
I get following output to xterm when launching xmms ... purpleburple Linux - General 11 07-26-2002 07:10 AM


All times are GMT -5. The time now is 07:15 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration