Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
2  
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? –  Václav Zeman Apr 11 '12 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 "$@". –  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
add comment

Your Answer

 
discard

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.