sudo crontab -e python

xXNORDXx

Gold Member
Gold Supporter
Credits
745
Anyone savy with python and cron?
trying to get my LCD screan to work at boot up. using raspbain pi . I jusr can't seem to wrsp my head around it.
home/pi/stats.py
 


captain-sensible

Well-Known Member
Credits
14,907
i don't know much about cron but thought that was to schedule tasks once the system was up and running

IN slackware (which didn't use systemd) for evoking stuff at boot up you could put scripts at /etc/rc.d/rc.local

haven't a clue how to do that with systemd

with python either the script is going to be needed to be evoked with something like : sudo python yourPythonScript.py or you compile an executable elf , which is what 've done for a Arch AUR program(installed to /usr/bin) even then it needs to be evoked from command line : sudo nameOfElf
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Top