1
rated 0 times
[
1]
[
0]
/ answers: 1 / hits: 3701
/ 3 Years ago, fri, july 9, 2021, 4:05:51
EDITED:
I got a script running with a cronjob every day at 1 am:
0 1 * * * /bin/bash /home/performanceRatio.sh
It also appears in the cron.log:
Feb 2 01:00:01 inf-education-67 CRON[108963]: (root) CMD (bash performanceRatio.sh)
Feb 2 01:00:01 inf-education-67 CRON[108962]: (CRON) info (No MTA installed, discarding output)
Expected behavior is to update a mysql database. Changes appear if it's run manually.
Using Ubuntu 20.04
My script looks like:
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
python3 get_weather_data_crn.py && python3 pv.py
* * * * * env > /tmp/env.output
shows:
HOME=/root
LOGNAME=root
PATH=/usr/bin:/bin
LANG=de_DE.UTF-8
SHELL=/bin/sh
PWD=/root
More From » cron