LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-25-2003, 03:59 PM   #16
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled

Oh - I thought those were two separate issues. *I* don't know what xmule is. *g* I thought you were just wanting to get some console display into a file. And the syntax is 'command | tee filename', yeah, but I suddenly suspect you have something completely different in mind. Do you mean a sort of screen capture of your console? I'm not actually sure how to do that, though it can be done, I believe.
 
Old 07-25-2003, 04:19 PM   #17
SirLancelotX
Member
 
Registered: Jul 2003
Location: USA
Posts: 44

Original Poster
Rep: Reputation: 15
Nope, i meant just getting some output from the console into a file. You just told me how to do it though. What is tee? Is it a text editor?

Couldn't i just use this, i'm guessing.
xmule | cat > filename
?

xmule is a p2p application that i hear good things about. It's gui, but whenever i run it it doesn't start up because of an error or something. I just want to save the error text into a file so i can easily put it online, instead of retyping it all.

Lance
 
Old 07-26-2003, 02:33 AM   #18
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
No, tee's just a pipe utility. You can't directly edit the input and output - it just splits the output so that it displays on your screen *and* is passed to a file or another app. I thought you wanted to see the display and save it. If you just want it saved to a file, depending on the app you can launch it from your xterm just like

xmule > xmule.output

and the GUI will come up (or not) and the console messages will be in the file. Seems like that's not worked for some apps, but it does for most - just did for dillo as a test case, like

Code:
|--digiot@slackath Fri Jul 25 23:31:13
|--bash 2.05b ~ $ dillo > dillo.output

|--digiot@slackath Fri Jul 25 23:31:28
|--bash 2.05b ~ $ less dillo.output 
Setting locale to C...
dillo_dns_init: Here we go!
Enabling cookies as from cookiesrc...
Nav_open_url: Url=>about:splash<
Nav_open_url: Url=>http://dillo.auriga.wearlab.de/dillo-help.html<
Dns_server [0]: dillo.auriga.wearlab.de is 0x80cf388
Connecting to 134.102.206.165
Nav_open_url: Url=>http://www.dillo.org/dillo-help.html<
Dns_server [0]: www.dillo.org is 0x80caa30
Connecting to 134.102.206.165
Dillo: normal exit!
Sure it's enabling cookies. And I've gotta fix my clock. Ever since I installed and removed Mandrake my clock's been screwed. Anyway - that's the idea.
 
Old 07-26-2003, 11:35 AM   #19
SirLancelotX
Member
 
Registered: Jul 2003
Location: USA
Posts: 44

Original Poster
Rep: Reputation: 15
Well isn't this a bugger.

With dillo:
dillo > dillo.txt saves my output to dillo.txt

With xmule:
xmule > xmule.txt makes an empty file, although the output of trying to run xmule does get onto my screen

I guess i'll just have to run xmule, even though it won't run, and copy what it says in the aterm by hand to a form on these forums when i ask what's wrong. Bugger!

Lance
 
Old 07-27-2003, 02:47 AM   #20
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Well, if it is writing to stdout, then try

xmule | tee xmule.txt.

I'm not sure why simple redirection doesn't work with some apps but tee should because it *is* writing to screen at least. But, um, if it's writing to screen you could just select the text in aterm and copy it into your browser. In rxvt I select and middle-click in mozilla.

Which is kinda ironic as that's how I pasted in the stuff I redirected to begin with. *completely confuses self*
 
Old 07-27-2003, 05:23 AM   #21
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
If you want to copy text from a terminal, all you have to do is highlight it with a left-click of the mouse; then to paste it somewhere else, just middle click. This will work as long as there isn't too much text (say it fills more than the scroll buffer for your aterm)

Since xmule > xmule.txt is giving you an empty file, and you seem to be trying to copy error messages, then you could try the following:

xmule 2> xmule.txt

The 2 in this command redirects output from stderr (error messages) to the file xmule.txt.

Enjoy!
--- Cerbere
 
  


Reply



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
Relationship between LQ forums & Distro forums impeteperry LQ Suggestions & Feedback 3 11-01-2005 02:20 PM
lynx & dillo: how to manage cookies? eeried Linux - Newbie 2 06-17-2005 11:03 AM
How do I make Dillo stop cacheing? Nebetsu Linux - Software 0 05-22-2005 12:28 PM
DSL dillo for other distros APB_4 Linux - Software 0 04-24-2005 06:46 PM
Dillo Web Browser - Smoking Fast Breezwell Linux - Software 1 02-12-2004 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:38 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
Open Source Consulting | Domain Registration