1

I use debian 6 on an embedded system which is supposed to run a program called pilot. The OS is configured to login as root without asking password (there is no monitor nor keyboard connected). After login, pilot will run automatically.

I need to see std output of the pilot. I'm connecting with ssh over wireless.

1 Answer 1

5

Execute the pilot under screen or similar tool or with stdout and stderr redirected to pipe to tool similar to Apache's rotatelogs.

4
  • 2
    Can't figure out how do I do that... Commented Apr 11, 2012 at 9:36
  • How is the pilot program started on the embedded system? Can you modify the way it is being executed? Commented Apr 11, 2012 at 9:47
  • 2
    If you can't figure out what launches pilot, then move the binary to one side (e.g. pilot.real) and insert a script named pilot that contains exec screen pilot.real "$@". Commented Apr 11, 2012 at 10:01
  • I need to see output after pilot is started. Pilot is started in when bashrc in loaded. Commented Apr 11, 2012 at 10:38

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.