MAC OS X 10.4 Darwin terminal

edijs

Programmer
Hi! So the question is - if I have a task going on in this one terminal and it outputs several messages there. Let's say I close it accidentialy - is it possible to get that text back?
 
I'm not sure if it's possible, there are methods to get the last commands you entered.

This displays the last commands you entered:

Code:
$ history

This next one displays the history file in the terminal window.
Code:
$ cat ~/.bash_history

Not sure about getting the last output of the shell though...

What was it you were doing?
 
thanks, but it's displaying the commands that were given to the console, not the output.
 
Yeah that's what I was saying, I'm not sure the last output can be obtained - may I ask what you were doing?
 
It's a script that's designed to send files to a server and the server proceses them (builds packages). The server then sends back messages as it goes indicating the status of each package.
 
Back
Top