Hi,
I’m trying to get classify.py 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/classify.py model.eim
Any suggestions?
Hi,
I’m trying to get classify.py 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/classify.py 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.
Regards,
Louis
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/classify.py model.eim
Regards,
Louis
I get the below message
" Too many arguments. "