LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-01-2005, 03:54 AM   #1
jarobman
LQ Newbie
 
Registered: Jan 2005
Location: Manitoba, Canada
Distribution: SUSE Personal 9.1
Posts: 23

Rep: Reputation: 15
xterm will not produce output with -lf parameter


xterm will not produce an output file of any of its sessions even if I specify the -lf parameter. I have no idea why it is behaving like this. The reason I need xterm to produce output to a file is because a program I am using, BSVC 68000 Simulator, opens up xterm and spits out any 68000 simulated output to the terminal. The setup file for BSVC specifies that xterm be called in a certain way:
Code:
BSVC Simulator Setup File

UI_VERSION {2.0}
SIMULATOR {sim68000}
COMMAND {AttachDevice 0 RAM {BaseAddress = 0 Size = 100000}}
COMMAND {AttachDevice 0 M68681 {BaseAddress = effc00 OffsetToFirstRegister = 1 OffsetBetweenRegisters = 2 InterruptLevel = 4 PortAStandardInputOutputFlag = 0 PortBStandardInputOutputFlag = 0 PortACommand = xterm -T "M68681 Port A" -132 -sb -sl 100 -l -lf "68kout.txt" -e xtermpipe PortBCommand = }}
I have tried messing around with the setup file to see some results but was unsuccessful. I have even tried running xterm independenly from konsole and still no output. If anyone can give me some insight on how to get output from xterm that would be great because I need BSVC for a course in assembly language. Thanks in advance!
 
Old 03-02-2005, 02:03 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
You may have to recompile xterm ... most distro's will have
recording NOT compiled in for security reason.

Alternatively you can try to use script (man script for details)
to capture the session ...


Cheers,
Tink
 
Old 03-06-2005, 02:12 AM   #3
jarobman
LQ Newbie
 
Registered: Jan 2005
Location: Manitoba, Canada
Distribution: SUSE Personal 9.1
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for the tip! I'll try and find a way to recompile xterm. FYI, script will not work for me as it appears that it cannot capture an xterm session that specifies -e xtermpipe as a parameter. This parameter is required for BSVC to display its output via xterm.

On a side note, I may not want to recompile xterm to log console output because I read that there is a security leak with respect to logging that allows any user to gain access to the root user... a very good reason to disable logging by default
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how is black xterm background in IceWM when issue a xterm command? BRAHmS Linux - Software 1 02-14-2005 03:51 AM
Running a program inside my QT application does not produce needed output files??? keos Programming 0 02-22-2004 11:37 PM
bad dmesg output when using ide-scsi boot parameter for IDE CD/DVD-ROM Locura Slackware 7 09-29-2003 02:36 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


All times are GMT -5. The time now is 12:55 AM.

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