Answer the question
In order to leave comments, you need to log in
Why is the script not running from cron?
#!/bin/sh
t=`/usr/bin/curl http://24temp.ru/android/2014-24temp.php | /usr/bin/tr -d {t\"ph, | /usr/bin/awk -F":" '{ print $2 }'`
echo "$t" >> ~/t.txt
Answer the question
In order to leave comments, you need to log in
from under the root
or user chemax
the following line* * * * * /home/chemax/getdata/getdata.sh
Write the full path to the script, and in the script - the full path to everything called.
PATH in the cron environment can easily be different from the PATH in the user session environment.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question