Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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

share|improve this answer
Can't figure out how do I do that... – sorush-r Apr 11 '12 at 9:36
How is the pilot program started on the embedded system? Can you modify the way it is being executed? – wilx Apr 11 '12 at 9:47
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 "$@". – ams Apr 11 '12 at 10:01
I need to see output after pilot is started. Pilot is started in when bashrc in loaded. – sorush-r Apr 11 '12 at 10:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.