Questions tagged [cron]

Cron is a time-based job scheduler in Unix-like computer operating systems. Cron enables users to schedule jobs (commands or shell scripts) to run periodically at certain times or dates.

For information about the most common cron issues and how to fix them, see Why is my crontab not working and how can I troubleshoot it.

1957 questions
0
votes
2 answers

grep double quote in cron

i run this command on the terminal $ my_json_generator.rb | grep \"mtype\":164 | my_json_consumer.rb json_generator creates json objects. 1 per line. {"foo":7, "mtype":164, "bar":[1,2,3]} I only need lines that contain mtype of 164 and for…
Poul
  • 101
  • 1
0
votes
3 answers

Why is logrotate not rotating logs Tomcat access logs on aws centos 6.3?

I have the following file in /etc/logrotate.d: /usr/share/apache-tomcat/logs/*.access { nodateext copytruncate daily rotate 7 notifempty postrotate EXT=`date --date='-1 day' +%Y-%m-%d` /bin/gzip $1.1 mv $1.1.gz $1.$EXT.log.gz endscript create 0640…
ashersz
  • 23
  • 1
  • 3
0
votes
1 answer

rdiff-backup simultaneously

into my backup Linux server (Ubuntu) I have done a system to backup my three servers. Into etc/crontab I have write line like this: 0 0 * * * user rdiff-backup -v9 user@111.111.111.111::/var/www/ /mnt/server1/www 0 1 * * * user rdiff-backup -v9…
0
votes
3 answers

What is wrong with this cron tab entry?

0,35 * * * * /home/scripts/backup.sh "daily backup" what is wrong with my cron tab line it isn't working I didn't try @daily yet but wanted to make sure it is running so am running it at 0 minutes on the hour and at 35 mintues every hour. I don't…
landed
  • 153
  • 1
  • 7
0
votes
2 answers

Cron Email Locally

I have my crontab configured to mail to a specific address, for example purposes lets say "test@test.com". test.com is also the host name of my box, however I have my mx email records configured externally to point at gmail domain. All emails work…
Envious
  • 101
  • 1
0
votes
2 answers

glassfish start script fails through crontab

I have a created a script to check to see if my glassfish server is running, if it isn't, it attempts to kill the java process to ensure it's not hung, and then issues the asadmin start-domain command If this script runs from the command line it is…
cotfessi
  • 1
  • 3
0
votes
1 answer

How to setup server cron in specific minute

I'm editing a crontab for a job that I want to run it every hour but at specific time like at 10:15AM, 11:15AM, 12:15PM so on. I'm not sure if this is possible though. For every hour 0 * * * * Any help appreciated, thanks.
0
votes
3 answers

crons are not working, but scripts are... any idea what is it?

I checked on internet , this might be a common problem, but I dont know how to solve it, all things that they said are not my case... The cron is running, I checked, still, I have no log files (at least not in var/log) , I am using Debian 6, my .sh…
user156355
  • 99
  • 1
  • 3
  • 9
0
votes
1 answer

Cron jobs no longer work since installing ssl cert on rackspace cloud server

I recently installed an ssl cert on my rackspace cloud server. Prior to installing it, my cron jobs were running fine. When I ssh to my server and do a crontab -l, I can see the jobs are still there: */5 * * * * /usr/bin/curl…
Rooster
  • 495
  • 2
  • 7
  • 21
0
votes
1 answer

cron job failing silently

I have a cron job scheduled to run under the root user, but it is silently failing. The command calls a php script which among other things runs mysqldump via exec, this dump is not being created. There are no error messages in the apache log but…
baseten
  • 145
  • 2
  • 7
0
votes
3 answers

Can't figure what's wrong with with my crontab

Due to some bug in one of my scripts i'm being forced to delete temp files every 30 minutes until i'll figure it out and debug it. To get it done i've written a small bash script that i run every 30 minutes…
user148366
0
votes
1 answer

cron settings for elysia_cron (a drupal module) on a load balanced server

I am configuring elysia_cron on a Rackspace Managed Cloud Server. We have a loadbalancer in front of two webservers. Am I supposed to use all three (3) IP addresses (Load Balancer, Web01, Web02) in the "Allowed Hosts" field? or just use the IP…
fndtn357
  • 103
  • 3
0
votes
2 answers

cron jobs still executing after it is remove in directadmin panel

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…
Pelang
  • 413
  • 5
  • 9
  • 15
0
votes
1 answer

escaping in crontab

The following is working as expected at command prompt. But it does not work from cron. # echo "test abc xyz" | grep "test1 \| pqr" # echo "test abc xyz" | grep "test \| pqr" test abc xyz When I use this statement in the cron, I need to escape…
shantanuo
  • 3,579
  • 8
  • 49
  • 66
0
votes
1 answer

Crontab start a screen

I started a screen by shell script in crontab, when I entered the screen, the left side became "sh-4.1#". While I runed the script directly, it was nomal with "[root@localhost data]". What happened? Shell script: #!/bin/bash cd…
Brighter
  • 3
  • 2