Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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!
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*
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.