Pi3, Autostart at reboot issues

Hello Members / Team
I am a novice at best so please be gentle

I have a PI3 I want to run as a headless barcode scanner for membership cards (Attendance)

The script I have been running checks out OK via terminal and via the run script below
What I have been trying to do for ages now is to get the project to start up automatically on reboot

I have tried to enter a line in rc.local with no joy
python3 /home/pi/Desktop/lxterm_scanner.desktop &

As well as in LXDE-pi/autostart (There is also LXDE/autostart) not sure which one is correct
xdg-open /home/pi/Desktop/lxterm_scanner.desktop

And crontab-e
@reboot python3 /home/pi/Desktop/lxterm_scanner.desktop &

Any guidance would be appreciated

Hi, @Michael9139, am I correct in assuming you’re looking for some terminal feedback while your script runs?
This is something I haven’t covered in the beginners workshop (because I’ve never done it!)
If so, this thread may be of interest to you.
One thing to note - I don’t think the & is required for the crontab entry. We need this for rc.local becase it runs during Raspbian’s start up, so infinitely looping scripts will actually hang startup. This isn’t a problem when using the crontab.

So try changing the cron job to:
@reboot python3 /home/pi/Desktop/lxterm_scanner.desktop

1 Like