Sep-16-2023, 04:18 PM
Hi guys,
So Im reading through this git (https://github.com/cubapp/RasPi-EnviropH...ree/master) and the author writes:
Now, ive got the python file created. Then from what i understand, he creates a crontab file and adds this line:
The next 3 lines confuse me. Are these lines in the .sh file:
Mars
So Im reading through this git (https://github.com/cubapp/RasPi-EnviropH...ree/master) and the author writes:
Quote:I call the Python from a shell script via crontab:
$ crontab -l
*/2 * * * * /path/to/update-ts-enviro.sh
$ cat /path/to/update-ts-enviro.sh
#!/bin/bash
/usr/bin/python3 /path/to/print-update-thingspeak-enviro.py >> /logging/path/logs/enviro.csv
Now, ive got the python file created. Then from what i understand, he creates a crontab file and adds this line:
*/2 * * * * /path/to/update-ts-enviro.shwhich calls that .sh file. So i created an empty file called shenviro.sh.
The next 3 lines confuse me. Are these lines in the .sh file:
cat /path/to/update-ts-enviro.sh #!/bin/bash /usr/bin/python3 /path/to/print-update-thingspeak-enviro.py >> /logging/path/logs/enviro.csvThanks
Mars