auto clear cache cronjob problem
auto clear cache cronjob problem
Hello everyone!
I'm trying to add this cronjob:
user is Admin allowed to run bash, Centos6 the file clearcache.sh (permission 755) contains:
the error I get is:
viewtopic.php?t=17707
any thoughts?
thank you!
I'm trying to add this cronjob:
Code: Select all
sudo /usr/bin/bash /home/clearcache.sh
Code: Select all
#!/bin/bash
# Note, we are using "echo 3", but it is not recommended in production instead use "echo 1"
echo "echo 3 > /proc/sys/vm/drop_caches"
I tried this but it doesn't work:sudo: no tty present and no askpass program specified
viewtopic.php?t=17707
any thoughts?
thank you!
Re: auto clear cache cronjob problem
That system you use ?
Why not run this specific crons with root user ?
Why not run this specific crons with root user ?