Hi,
I have a cronjob set up like so:
~> crontab -l
0 * * * * /bin/bash -l -c 'cd /mnt/hgfs/kodiak && RAILS_ENV=test bundle exec
rake nightly_tasks --silent 2>> ./log/tasks_errors.log'
I can see that the cron job is running because it is being logged and the log is being updated.
How can I set up a php script to run via cron
I've created a file in the cron.d folder with the username as the file name:
/etc/cron.d/username
Inside of username file I placed the following cron command
0,30 * * * * username /home/username/public_html/cron.php
I'm actually trying to get the cron working for Open Atrium however upon checking Open Atrium status it shows no signs of the cr
When I noticed that the backupscript I placed in /etc/cron.weekly on my Debian6 server isn't executed I placed this small script in it, to see if the weekly cronjob is executed at all:
#!/bin/bash
echo 'CRON RAN' > /var/log/cron-weekly-runcheck.log
saved it as
-rwxr-xr-x 1 root root 64 Jul 15 02:14 /etc/cron.weekly/runcheck.sh
When I checked today, the logfile it was supposed to create di
I have a script that works when I run it from the command line, but when I schedule it with cron I get errors that it cannot find files or commands. My questions is two fold:
When I schedule a cron job by using crontab -e does it use my user ID as the basis for it's permissions?
On Debian Squeeze, cron stops running.
I have problem on cron jobs that are still executing even after removing them.
I already view all the possible cron jobs from this article. All cron config files are empty or my cron task are not present. I also came up with this command for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done.
HI I am new to unix .
I wanted to create a cron job that runs a script every 10 min .So when I enter
Code:
vi /etc/crontab
I get the following output
Code:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root
Hi,
Im trying to run script A which requires path /sbin.
I have a crontab entry to run script A every 10 minutes.
Script A is executed fine by cron, but because script A requires /sbin in its path it fails to run.
My situation is script A get overwritten from time to time so I can't modify script A to set path in there.
So my question is...