Hi,
I am trying to run a cronjob.
I just setup a cronjob in /var/spool/cron/crontabs/root which is running fine.
Yes, I have read many, many documentations but I can't get it to work. I have a simple single php file which I want to run once or twice in a minute. My php file is called: cronjob_refresh.php and I'm using Ubuntu 12.
After typing
crontab -e
I'm getting in terminal:
root@cron:~# crontab -e
no crontab for root - using an empty one
888
I don't know what '888' is meaning...
Okay, so I am trying to find a cronjob that was created to ensure that the script doesn't duplicate the same exact cronjob.
I've been trying to use something along these lines but haven't had much luck:
if ! crontab -l | xargs grep -l '/var/www/arix/update.php'; then
echo "Cronjob already exists"
else
echo "Cronjob doesn't exist"
fi
Hi all, I am trying to run a cronjob to push my files to my git repo once a week and output a prompt to a logfile, my script works fine if I invoke it manually but my cronjob wont run for some reason, I have sourced the file, and restarted my Mac to no avail, right now I believe I have the cronjob timed for every 5 min for testing but would like it to run once a week once I get it working.
Hello,
I am new to cron. I have a cronjob that updates a dataset in a 3rd party application. The contents of this dataset come from a text file, which is updated irregularly. Currently my cronjob runs once every week, to update this dataset (irrespective of whether the file was updated or not).
My task is to run the cronjob, if the file was modified say in the last 7 days.
Hi, I setup a cronjob in my server but it does not worked, in fact, the result file was not created so i assume the cronjob was not triggered, so my question is:
is there any log file or someelse that I check what is the problem with my cronjob?
regards
I'm trying to run a cronjob to backup my database every day.
I'm having two separate directories. The user loads a file into the first. Theres a cronjob running in the background which copies the files every 5 minutes over to the second directory.
What happens if the user has not completed his upload and the cronjob copies the files? Note that the two directories are owned by different users, the cronjob is performed as root.