The cron tag has no wiki summary.
0
votes
1answer
35 views
Schedule bash sript for one time use on OSX
I'm trying to do a little script that, as a function, will take a file and date as input and delete that file on the specified date.
So I only need it to schedule to run once, and that's it.
I'm on ...
0
votes
1answer
31 views
How to delete directories older than one hour (cron job)
My application creates directories when user performs certain action. These directories are stored on my machine for exactly one hour and than are deleted.
Now I would like to move the 'deleting ...
0
votes
3answers
68 views
Will this cron job run as expected?
I have a fairly important cron job set up and I would like to know if it will run 5 minutes past the hour every hour every 3rd day?
5 * */3 * * php ...
0
votes
1answer
20 views
In OS X Lion under zsh, how can I set up a /Users/username/tmp directory which deletes after X days?
I'm new to scripting and regular jobs on OS X, so appreciate the help in advance.
I'm looking to have a tmp directory in my homedir, as in /Users/username/tmp which I can use as my "downloads" ...
0
votes
1answer
15 views
Is there a aliases file for sSMTP?
I installed sSMTP for sending emails from command line.
I want to create some alias for cron jobs:
$ sudo vim /etc/aliases
# append this line at the end
myname: root
$ newaliases
...
2
votes
2answers
65 views
Run a cron job on the first Monday of every month?
I'd like to run a job from cron at 8.30 on the first Monday of every month. The cron Wikipedia page says
While normally the job is executed when the time/date specification fields all match
...
1
vote
1answer
19 views
How to use @reboot for crontab with delay
In crontab, I can use @reboot to run a command after the system reboot. Is there a way to do this with an delay, i.e. run a command after 10 minutes of reboot?
0
votes
0answers
39 views
Distributed cron [migrated]
I maintain many servers and have the following requirements
Run a unix process at a given time
Run a unix process at boot time and keep it running (in case it dies)
Disable a running process
I am ...
-1
votes
2answers
39 views
cron uid:gui for every username
So in the nutshell :
There was user John with 502:502.
After i deleted John and recreated him, his UID:GID changed to 504:504.
Cronjobs are still running under the John's crontab, but when the ...
0
votes
2answers
136 views
How can I perform a cron job every minute?
Are the following cron configurations identical?
* * * * *
0 * * * *
1 * * * *
I'm looking for a configuration that will run the job every minute.
0
votes
1answer
80 views
How do I make cron run a Java GUI application?
I have a script which runs a Java GUI application using "java -jar app.jar". I have added the script to the crontab to run every minute, check the processlist if the application is up. If it isn't it ...
0
votes
1answer
53 views
“Permission denied” when trying to use RVM with Cron
I am trying to employ the method descibed here.
My crontab:
# m h dom mon dow command
@reboot /home/qe2user/.rvm/environments/ruby-1.9.3-p125 /home/qe2user/Ruby/test/prog.rb > ...
0
votes
1answer
20 views
Running cronjob on specfic hours
How do i setup a cronjob to run every hour except from 11pm until 1am ?
Because during that time, the system is doing maintenance.
Cheers
0
votes
1answer
37 views
Cron view on VPS
How can I view all cron jobs scheduled on my Linux Ubuntu VPS? When I use crontab -l I do get a list of cronjobs but I cannot see the ones that are scheduled by WordPress, how can I also see the ones ...
2
votes
1answer
86 views
How to set-up date for cron weekly backup?
I'm writing a command for cron to do automatic backups for my flashdrive.
I use tar ... -N <some date> to make the backup.
The issue is how to write the command which gives me the right date.
...
0
votes
1answer
53 views
Set a cron every certain hours between certain hours
How can I set a cron to run every 2 hours between 8 am and 5 pm for example? Is this possible?
0
votes
1answer
44 views
Convert cronjob to launchctl plist
I should convert this cronjob to a launchctl plist.
Is this possible?
0 8-18 * * 1-5 /usr/bin/curl -s --data "par1=a&par2=b&press=OK" http://mydomain.com/file.php /dev/null
2
votes
1answer
42 views
Cron job once a minute for one hour a day
Is there a way to run a cron job once a minute for an hour every day?
I know I can probably make 60 cron jobs to do this but that would make it difficult if I ever needed to edit the job.
0
votes
0answers
108 views
Why does cron task run twice?
I have a task that should run each day in Ubuntu10.04. So I use crontab and copy the scripts of the task to the directory /etc/cron.daily.
Here is the my crontab:
# /etc/crontab: system-wide crontab
...
1
vote
0answers
54 views
What happens if cron.daily is not terminating
Today I had to realize that some cron jobs werent run on my server! In the log files I find this:
Mar 13 03:30:01 osp-server anacron[7261]: Anacron 2.3 started on 2012-03-13
Mar 13 03:30:01 ...
1
vote
3answers
108 views
What do slashes “/” mean in crontab?
I'm seeing slashes in some crontab examples, I don't understand what they mean?
Check this one out for example
*/10 * * * * /home/ramesh/check-disk-space
...
1
vote
1answer
153 views
what is run-parts in /etc/crontab, and how do I use it.
I have been digging through my Linux system. To try and understand how it all works
In the /etc/crontab file. I see the following
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * ...
1
vote
1answer
61 views
How is crond daemon started without an init.d/chkconfig entry?
I'm running a sandbox server with Fedora 15. I've gathered that since my crontab file has no entries (ie. ***** run-parts /dir/) for scheduled run-parts, it is not currently configured. The ps command ...
2
votes
1answer
35 views
possible ways to totally wipeout cron jobs
I have accidentally wiped out all my cron jobs. I'm not sure what I have done. I don't remember deleting entries from it by issuing crontab -e. What are the possible ways that the cron jobs can be ...
0
votes
1answer
623 views
Simple Cron task in Mac OS X Lion
I am trying the Cron facility in Mac OS X Lion, but it does't seem to work.
The crontab looks like this:
MacBook-Air-de-Vincent:run vincentle$ crontab -l
MAILTO=bxxxxxxxx@gxxx.com
* * * * * (echo ...
1
vote
1answer
79 views
Debian Linux cron stubbornly refuses to run at right time
I have a Debian Linux server, recent install. It has this cron job:
7 1 * * * /do/something/important.sh
As I read that, it should run at 1:07am. Instead, it runs at 5:07pm.
So, wrong ...
1
vote
0answers
97 views
Need to set cron for random intervals with iMacros
I am trying to learn about cron for iMacros but I don't know where to look. Google was no help.
Basically I have script I wrote, a series of commands, like this:
Line 1
Line 2
Line 3
etc.
What I ...
3
votes
1answer
158 views
Shell script of mysqldump works fine when run manually, but does not run in the cron job?
I have a shell script to get a MySQL database dump. This script works fine when run manually
#!/bin/sh
fqn=/home/Mysqluser/daily_dumps/bookstore_`date +%Y%m%d_%H%M%S`.sql.gz
mysqldump -u root -h ...
1
vote
0answers
33 views
query a URL every H hours for changes in the results?
How can I query a specific URL (mostly html and js) every H hours for changes in html content, which is mostly an html table with some header, and have the results fed to an RSS? This URL in question ...
0
votes
2answers
91 views
Writing a cron job to email myself
How would i write a simple cron job to email myself a message at a certain time? Also is it possible to create a cron job without root access. I'm trying to use my school's server?
0
votes
1answer
103 views
What is the difference between “periodic” and “cron” on OS X?
I bought a book on OS X and it says that launchd now control the scheduling of cron tasks, it this true?
Also it says that if I place commands in /etc/daily.local that they will execute after the ...
0
votes
2answers
125 views
Multiple crontabs for one user
is there a way to use multiple crontab files for one user? Thinking something along the lines of crontab file per project instead of crontab per user...
Any help is appreciated...
0
votes
0answers
21 views
How to copy the contents of a folder to another folder when a change is noticed? [closed]
Possible Duplicate:
How to sync OS X desktop to Dropbox?
I want to sync my desktop to dropbox.
for that I want to copy my desktop folder to a desktop_copy folder in my dropbox folder.
...
0
votes
0answers
84 views
crond in /etc/init.d does not run
I am running linux fedora 16 (Laughlin). the crond daemon is not being run by my machine in my etc/init.d directory.
This is the ouput from ls -lut
-rwxr-xr-x 1 root root 2793 Jun 29 2011 crond
...
1
vote
4answers
76 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 ...
1
vote
1answer
168 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
149 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
94 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
30 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
191 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
76 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
132 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
173 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
143 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
2answers
127 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
211 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
1answer
34 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
139 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
131 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
152 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 ...