I let a make
command running last night when connected via SSH to a remote machine. Then had to close that SSH session, letting make
run.
How can I check the last printed messages on the console (to know if no error was issued)?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityWhat I would recommend is to prepeare in advance, and run the command as follows:
nohup make install >> /var/log/messages &
or, another option, install screen. Before running the command create a new screen with screen
command.
When coming back, type screen -r
, or screen -r <screenid>
if you have several screens opened to log back in to the session and see all messages printed.
Both of these commands require that you run the commands differently and I don't think they can help you if you already run the command as you did and wish to see its results now.
nohup
disown
? Or inside a terminal multiplexer likescreen
ortmux
? In the latter case, the output could be recoverable by just browsing the terminal buffer history, depending on the max buffer limit.