0

I have a process that is causing a reboot. I'd like to capture any console messages to the messages are not lost. How can I do that?

1
  • The kernel messages from a kernel panic should still appear in /var/log/messages after a reboot. It maybe just that the messages are in an older message file after log rotation. Commented Oct 18, 2017 at 15:22

1 Answer 1

2

Bash redirect:

program > stdout_log 2> stderr_log 

If you want to append instead of overwriting:

program >> stdout_log 2>>stderr_log 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.