| View previous topic :: View next topic |
| Author |
Message |
Nick Levinson Newbie

Joined: 26 Sep 2007 Posts: 9
|
Posted: Wed Oct 07, 2009 10:50 am Post subject: Terminal: how to retrieve old (post-exit) messages? |
|
|
How do I find messages in Terminal after it has quit?
I run a program of some kind. It invokes a terminal. In one case, it displayed a paragraph of text and, in less than a second, exited. I open a terminal and try to scroll up or go through the history of previously-typed commands but I can't find the disappeared text. I'm running Gnome desktop environment 2.24.1 in Fedora 10 Linux.
What should I type?
Thank you.
--
Nick |
|
| Back to top |
|
 |
Sargek Moderator

Joined: 09 Dec 2002 Posts: 536 Location: San Antonio, Texas
|
Posted: Fri Oct 16, 2009 10:53 am Post subject: Re: Terminal: how to retrieve old (post-exit) messages? |
|
|
| Nick Levinson wrote: | How do I find messages in Terminal after it has quit?
I run a program of some kind. It invokes a terminal. In one case, it displayed a paragraph of text and, in less than a second, exited. I open a terminal and try to scroll up or go through the history of previously-typed commands but I can't find the disappeared text. I'm running Gnome desktop environment 2.24.1 in Fedora 10 Linux.
What should I type?
Thank you.
--
Nick |
Depending on the distribution, and the application, the logs could be in different places. What application are you invoking? _________________ "Amongst all things, knowledge is truly the best thing: from it's not being liable ever to be stolen, from it's not being purchasable, and
from it's being imperishable." |
|
| Back to top |
|
 |
Nick Levinson Newbie

Joined: 26 Sep 2007 Posts: 9
|
Posted: Fri Oct 16, 2009 9:58 pm Post subject: |
|
|
Question is for any application. I think I ran a Perl program; I don't remember exactly whether it was one I downloaded from outside the distro or a short one I wrote to see if I could write a Perl program (I have a project underway that requires that I create a Perl program). Perl itself is part of the distro.
Are there at least a few standard locations for old post-exit Terminal logs in Fedora 10 with Gnome?
Thanks.
--
Nick |
|
| Back to top |
|
 |
Sargek Moderator

Joined: 09 Dec 2002 Posts: 536 Location: San Antonio, Texas
|
Posted: Fri Oct 16, 2009 10:35 pm Post subject: |
|
|
| Nick Levinson wrote: | Question is for any application. I think I ran a Perl program; I don't remember exactly whether it was one I downloaded from outside the distro or a short one I wrote to see if I could write a Perl program (I have a project underway that requires that I create a Perl program). Perl itself is part of the distro.
Are there at least a few standard locations for old post-exit Terminal logs in Fedora 10 with Gnome?
Thanks.
--
Nick |
After some quick googling, I am not convinced Perl writes anything anywhere unless you tell it to - it sounds like your code is writing to stdout, which is the screen. In this particular case, this issue doesn't have anything to do with either Fedora or Gnome, you just happen to be using those. Maybe you can get a better answer by researching Perl forums?
Linux writes certain terminal output to logs, but that depends on the distribution and the application invoked. Normally when this happens, it is by design, such as Gentoo's emerge output, which gets stored in logs.
Now I am just rambling...! _________________ "Amongst all things, knowledge is truly the best thing: from it's not being liable ever to be stolen, from it's not being purchasable, and
from it's being imperishable." |
|
| Back to top |
|
 |
Nick Levinson Newbie

Joined: 26 Sep 2007 Posts: 9
|
Posted: Fri Oct 16, 2009 11:19 pm Post subject: |
|
|
For Perl apps, I suppose I can write a line in an app to send stdout to a file, and that's a partial solution.
But it sounds like I need a multiapplication solution. Is it possible to permanently save stdout (or stderr, for that matter) to a log regardless of app? I can delete old logs now and then, but meanwhile I can see what's in the current log from a recent event.
Thanks for the help so far. Now I know I can stop looking for what's gone. |
|
| Back to top |
|
 |
|