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