Run at boot -nraspberry pi 4


I’m trying to get to run when raspberry pi 4 boots. I used systemd and crontab but both not working.

The line that I added to Crontab is below

@reboot sudo python /home/pi/aXXXX/XXX/ model.eim
Any suggestions?

Hello @Aisha,

I am not sure it’s a good idea to use sudo in a cronjob, it would require that you store your password in a text file somewhere.



what do you recommend ?
I sued systemd as well, and it is showing that the service is enabled, but it doesn’t seem to de detect sounds

What if you just do that?

@reboot python /home/pi/aXXXX/XXX/ model.eim



I get the below message
" Too many arguments. "