I wrote a small C executable that uses "printf" statements for debugging, like
When I run the executable in a Terminal window with ./myProgramme all the printf output appears in the Terminal window, fine so far.
But I want to autostart the executable and added the line
to the autostart file of lxsession (.config/lxsession/LXDE-pi/autostart)
After booting the Pi, the executable is running (I checked with ps -A), but I can't find the printf output anywhere I looked (/var/log/messages, /dev/stdout, /dev/stderr)
I also tried changing the autostart line to
@./myProgramme > /home/pi/myLog.txt
but no "myLog.txt" file is created after booting...