LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 04: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, 05:39 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,417
Blog Entries: 55

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
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 11:18 AM
Saving the output of a file as a variable mrobertson Programming 5 07-08-2005 12:43 AM
xterm will not produce output with -lf parameter jarobman Linux - General 2 03-06-2005 02:12 AM
how to send the output to another xterm? abd_bela Programming 2 08-17-2003 12:28 PM
I get following output to xterm when launching xmms ... purpleburple Linux - General 11 07-26-2002 06:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:24 PM.

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
Open Source Consulting | Domain Registration