Skip to content

Tag: cron

cron-job linux apache ssl

I have a server installed with apache2 and drupal 6. In my server, I have installed a module which need to use cron. I have a SSL certificate installed too. In my crontab y have this configuration: My server work but if I write this configuration in my sites-enabled/000-default: my module with cron stops work…

flock: -c requires exactly one command argument

We have multiple cronjobs running on our system. The problem is that we run them every hour, and therefore sometimes the cronjob didn’t finish and a new instance has started. Because of that, we wanted to use flock so the script only gets executed once. However, when I have this in my crontab or run it …

Redirect all output of the java program to log file

I have scheduled my jar file by saving this line at the end of the crontab: Cron has started the job, also created the log file, but there is nothing in that file. Any idea why is that? I am doing System.out.println() in my program. I have added write permissions to everyone for that file. Could it happen tha…

Crontab not starting command on reboot

I need a command to run at reboot. This command is called script.sh This command pipes input to a python program I wrote called test.py. The problem is the program is not running when I check the processes.The syslog file states that it started the command on reboot, but it is not running. my crontab entry lo…

crontab not working under arch linux

I tried to set up a schedule to remove the old file and folder after several days. I put the following code in a script file and tried to use crontab to run it every day. The find command worked fine. but the crontab seems not execute the script file. I also use crontab for other tasks, i.e. rsync, they