Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
4answers
49 views

randomised cron command

I'd like to write a cron command so that a job would execute once at some random time during the week - is this possible without having the crontab modify itself? I've considered writing a function ...
0
votes
1answer
28 views

How can I write a cron job to archive my log files every night?

I assume this is relatively easy but my shell scripting isn't that great so I'm hoping to get some help. I have a task which runs every hour and appends its output to a log file. I'd like to move ...
1
vote
1answer
24 views

why does my python cron job time out?

I have a long cron job running a python script in CENTOS, but for some reason it seems to timeout or otherwise end without completion. the job runs fine when executed straight from bash, but seems to ...
0
votes
3answers
33 views

Crontab deleted?

Instead of typing "crontab -e" I accidentally typed "crontab" and was stuck in the middle of a process so I aborted the process. Now when I go to crontab -e it's entirely blank. This isn't good at ...
0
votes
1answer
15 views

I can not find specific cron running at *:21 and *:56 on Debian

I am frustrated. I have two mystic crons running on our server, that I can not find by doing crontab -l. The good thing is these crons are sending mails. That is how I know those are running at :21m ...
1
vote
2answers
43 views

kill and restart process by cron

I've got python script running on a remote machine, periodically it stops responding so I ssh in, kill the existing process, and then restart it. I have to do this several times a week and it's ...
1
vote
1answer
49 views

How to create snapshots of your server for backup in Cent OS 5

I'm making the move from VPS to Dedicate server. Unfortunately, most dedicated servers do not provide server backups like managed VPS's do and I really like the piece of mind of having a backup of all ...
-4
votes
1answer
73 views

What are some cronjob programs for Windows 7? [closed]

Especially programs that can test to see whether files in two directories are the same file or not.
0
votes
2answers
29 views

Cron environment variables

I'm running a simple shell script that runs just fine in a login shell from cron, where it doesn't run. For some reason, /usr/local/bin is not on the users path when run from cron while it is when run ...
1
vote
2answers
24 views

Cron Job timing

Lets say 0 0,12 * * * command is what you write a cron job, which runs twice a day on 00hour and 12th hour. How to write to do cron job twice a day but lets say on 2pm and 2am?
0
votes
1answer
22 views

Disable cron jobs for a specific user

I have a list of jobs in the crontabs for user1, user2. I want to prevent the jobs of user2 from running. I tried listing user2 in cron.deny, but that only prevents him from accessing his crontab. ...
0
votes
1answer
50 views

Restart Solaris 10 SMF service automatically each day

I am currently facing the problem how to restart a SMF service automatically each day at a specific time. The simplest solution probably is to use cron. Currently my main objection is handling "lost ...
0
votes
0answers
12 views

Getting fcron and RVM work together

I'm trying to make RVM and fcron work together. Apparently fcron does not read directly or indirectly any sort of env variables. Which makes RVM futile and scripts fail. I have this script which ...
1
vote
3answers
42 views

cron and at are not working

On my Mac (yeah, yeah I know. but my Linux box is at work) for some reason cron and at don't want to work. They both register that jobs have been added, with no syntax errors or any qualms at all. ...
2
votes
2answers
47 views

Cron job not working consistently

I have a cron job: 1 0 * * * /usr/bin/wget -q -O /dev/null 'http://123.456.78.90/index/parsedata?&today=1' It should gather a bunch of data from the DB at 12:01am each day, organize it for use ...
0
votes
0answers
22 views

Set the from address on emails from cron/Set default from address for sendmail

As a normal user I can send email, either from the commandline or from PHP. But when a cron job has error output, sending of that email fails (I have a MAILTO=me@example.com at the top of the ...
0
votes
2answers
47 views

Timezone issue with cron

My cron jobs are computed one hour later compared to server time. I don't understand what is going on. My configuration is the following : Server time : Europe/Paris In /etc/default/cron I added ...
0
votes
1answer
69 views

Background Jobs from cron

I am running a cron on every two minutes. From the cron I am running other shell scripts in background with "&". After cron exits spawned shell script process still runs, this is desired behavior. ...
-1
votes
1answer
42 views

Running transmission-gtk under cron

I have a problem with cron on Ubuntu 10.04 and 11.04. crontab -e I have typed: 49 22 * * * /usr/bin/transmission-gtk I have also tried: sudo /etc/init.d/cron restart pgrep cron
1
vote
0answers
41 views

cron job not executing

I have a cron job that is supposed to run a script every 15 minutes. */15 * * * * /path/to/script.sh I checked in three hours later and found that the script never ran, even once. Earlier I tried ...
-1
votes
2answers
145 views

How do I create a wake up script using PowerShell? [closed]

Possible Duplicate: Alarm clock software that can turn the computer on? I need something that can wake someone up in the morning - basically like a cron event in Linux. I think this needs ...
0
votes
2answers
147 views

how do I see the history of crontab?

I've read a few posts on the web, gone and looked for the file they are mentioning and haven't found it. I'm in Ubuntu 11 and trying to troubleshoot a cron job that isn't running, even though I have ...
1
vote
1answer
57 views

Will cron on linux run the same job multiple times?

I am setting up an rsync backup job on linux (ubuntu 11.10 server). If the backup runs long, and is still running when the next scheduled time comes up, will cron start another instance of rsync? Or ...
1
vote
1answer
98 views

Jobs with anacron won't run

I would like to run two bash scripts daily using anacron in order to backup some data. Unfortunately I can't figure out why said scripts are not executed. For test purposes I let cron execute the ...
0
votes
2answers
101 views

How to setup a cronjob to auto download a file on Mac?

I'd like to setup a cron job to auto weekly download a file from my web hosting. I'm running OS X.6.8. I want to specify the folder that the file downloads into. How can this be done? I just want to ...
1
vote
3answers
631 views

Error adding cronjobs in Mac OS X Lion

Until now, I have never attempted adding a crontask on my Mac. To my surprise, it threw an error.. [hayek@mac:/www/] 02:33:22 PM: crontab -e ...
0
votes
0answers
30 views

Shellscript does not run from crontab

This script runs fine in terminal but not as a crontab entry: #!/bin/bash value=$RANDOM while [ $value -gt 1800 ] ; do value=$RANDOM done sleep $value notify-send -t 7000 -i ...
1
vote
2answers
30 views

Logrotate Error

When using logrotate from a cronjob, I am getting this erros: error: unable to open /var/log/mylog.1 for compression Does any one know what does it mean and how can I fix it ?
1
vote
1answer
1k views

Crontab script on Mac OS X Lion does not work anymore

I have a problem with cron tasks. Previously this script worked fine on Mac OS X 10.6 server, but when I initialize it on Lion (client), this script stopped working. Basically, this .bat file calls ...
0
votes
2answers
304 views

Why isn't my cron job going?

I was told that to get a cron job running hourly you simply have to put a shell script into /etc/cron.hourly So I tried adding #!/usr/bin/env sh firefox www.superuser.com Into a file test.sh and ...
0
votes
2answers
76 views

Open a terminal from a Crontab

How do I get a gnome-terminal window to open from a crontab? I have tried this: * * * * * /usr/bin/gnome-terminal * * * * * source /home/user_name/.bashrc ; /usr/bin/gnome-terminal * ...
0
votes
1answer
33 views

Scheduling Cron Jobs Without Colliding Frequencies

If I have several cron jobs that run: Every minute Every 5 minutes Every 15 minutes Every hour At midnight Then at exactly 00:00 I have 5 jobs running at the same time. I want to add another job, ...
3
votes
2answers
85 views

rsync over SSH with cron in osx-environment

I want to automatically download files and folders from a Linux server to which I have an SSH (and FTP) account. The files shall be downloaded on a regular basis (I suppose a cron is the right tool to ...
0
votes
1answer
167 views

JAVA main class not found when using Apple auto-ingest tool

I am trying to setup a cronjob to download my daily and weekly reports from iTunes Connect. I have downloaded Apple's Autoingestion.class and I have made the following shell script to download the ...
1
vote
1answer
62 views

crontab day of week vs. day of month?

I added this to /etc/crontab on a few different linux & freebsd systems: # monthly reboot: 3rd Tuesday of every month 56 07 15-21 * 2 root /sbin/shutdown -r now I want a reboot on the 3rd ...
1
vote
1answer
177 views

Bad minute in crontab?

I get the following error in my syslog: Oct 17 13:14:03 tracker cron[873]: (*system*) ERROR (Syntax error, this crontab file will be ignored) Oct 17 13:14:03 tracker cron[873]: Error: bad minute; ...
0
votes
0answers
59 views

Windows task scheduler to execute tasks in seconds

I'm looking for an open source/free task scheduler for Windows 7 (development machine) that will allow me to schedule tasks (HTTP requests to a web service) to run every x seconds. I've tried a ...
2
votes
2answers
88 views

What are the limitations of crontab?

Hardware considerations aside, are there any limitations on: The maximum number of cron jobs that can be scheduled for a single user The maximum number of CONCURRENT jobs that can be scheduled for a ...
0
votes
1answer
92 views

Cron alternative with timeouts and second resolution

Do you know an alternative to cron daemon that has second resolution, timeouts, and advanced system for error reporting? But it should be lightweight and should support different platforms(linux and ...
2
votes
1answer
51 views

wget doesn't see proxy under cron

I'm new to freebsd and have a problem: my script uses wget. when I call it from the command line it works fine and I see the output like this: --2011-09-22 15:55:58-- ...
0
votes
3answers
79 views

run cron every minute during a specific hour?

Running a cron job every minute is easy, running it at specific minutes past the hour is easy. But is it possible to say "only between 1300 and 1400 run every 1 minute"?
2
votes
2answers
88 views

How to set CRON to execute a php file outside of a public html folder?

I have a php file located at, let's say, for example: /data/web/process.php This file is not publicly available (no virtual host is running in that folder, but apache is installed). I need to ...
0
votes
0answers
35 views

Calling makefile from cron

I am trying to create hourly backups using a makefile, which uses rsync internally. (* */1 * * * backup.sh). Backup.sh is in my home folder. The reason I'm using a makefile is because I also do a ...
0
votes
1answer
32 views

Undocumented crontab entries

At one of the production servers, some processes are using crontab to start periodically. When I inspect the crontab entries, I see: * * * * * some job I cannot find out what this actually ...
0
votes
1answer
299 views

rsync cron job with a password?

I want to set up an rsync command as a cron job, so I need to find a way to supply my server password automatically to rsync. Currently I have a shell script that looks like this: #!/bin/sh rsync ...
2
votes
4answers
81 views

How do I add a job to cron?

So, here's what I did: Logged in as root via Shell Typed crontab -e Typed */30 * * * * /path_to_website/cronjobs/cron.php And now what? How do I save it? I just closed Putty and then logged back ...
0
votes
1answer
196 views

Screenshot cron job not working

I've been searching all over the internet for an aswer to this but can't seem to find anything that works for me. I want to run a cron job that automaticly takes a screenshot every minute. The script ...
0
votes
0answers
207 views

How to set cron HOME environment variable?

I am using esmtp to send email as an output of cron job. The SMTP server and credentials configuration are stored under my $HOME/.esmtprc. However it looks like the $HOME env variable is set to '/', ...
1
vote
2answers
94 views

Do jobs in root's crontab still execute when logged in as another user?

I have edited my root's crontab. Will root's cron jobs still run when I'm logged in as another user?
1
vote
1answer
23 views

Cron issue with daylight savings time

I have a cron job to send an email once everyday. I actually do not know the issue, but i'm guessing it has something to do with daylight savings time. During DST, my emails are sent one hour late ...

1 2 3 4