Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8042

Troubleshooting • Re: Struggling to run input script on startup

$
0
0
Not specific to your problems but:
[shameless self promotion]
Running A Program At Start Up A Beginner's Guide especially the troubleshooting advice.
[/shameless self promotion]

Assuming you're using RPi OS (tell us if you're not) have you configured your OS to use the X11 desktop rather than the default Wayland with Labwc one? If not your chosen autostart method will not be working.

There's also some issues with your bash script:
  • Code:

    ./home/test/Desktop/program.arm64 >> /home/test/Desktop/log.txt
    does not need the leading "." Given the cd / that precedes it, it doesn't need the leading / on either path either.
  • The same line only redirects stdout. That means any error message will not be captured.
  • Code:

    python3 home/test/Desktop/input_script.py >> /home/test/Desktop/pylog.txt
    could do with a leading / before the first home. I'd expect it to work as is but put it in for consistency.
  • The same line only redirects stdout. That means any error message will not be captured.
If those are transcription errors (i.e. were made while retyping the code into the forum) please repost the code via cut'n'paste.

Statistics: Posted by thagrol — Thu Jul 24, 2025 8:24 pm



Viewing all articles
Browse latest Browse all 8042

Trending Articles