Clase 25 de 27 • Curso de Introducción al IoT
Resumen
Comandos importantes: chmod +x bot.py ./bot.py
chmod +x bot.py
./bot.py
Línea de código agregada al inicio del bot.py: #!/usr/bin/env python3
#!/usr/bin/env python3
Comandos importantes: sudo crontab -e
sudo crontab -e
Líneas de código agregadas al crontab: SHELL = “/bin/bash”
SHELL = “/bin/bash”
53 22 * * * source /home/pi/.profile && /usr/bin/python3 /home/pi/bot.py