Skip to main content

Questions tagged [cronjob]

The tag has no usage guidance.

1 vote
2 answers
3k 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 ...
nanoman's user avatar
  • 111
4 votes
3 answers
5k views

Stop Cron job for a particular time interval

I have a cron job which runs every five minutes all day long. I want to stop this cron job running on Sundays between 4pm and 5pm - it should start again after this time. How can I script this?
akd's user avatar
  • 41
4 votes
2 answers
44k views

How to create a cron job to upload files to an FTP server

I would like to create a cron job that uploads files from a directory on my computer to my FTP server. I would like it to do it daily at midnight. I know pretty much nothing about cron, so I ...
Christopher's user avatar
2 votes
1 answer
490 views

Schedule a cronjob everytime it is done

I have a cronjon which runs every 48 hours. But ideally what I want is that it must start running as soon as it stops. Can this be done? It is an sh script consisting of a python command. I am using ...
Rishi's user avatar
  • 123
2 votes
2 answers
3k views

Why is this cronjob not working?

I have a ruby script in ~/custom_scripts/get_all_products.rb. I want it to run every night at 04:00. Here's what the cronjob in crontab -e looks like: MAILTO="<email>" 0 4 * * * ruby ~/...
narzero's user avatar
  • 419
0 votes
1 answer
383 views

Cron strange behaviour

I've got a Bash script with all the permission to be excecuted, I attach it to to a cron job, this script basically only kills and restarts a specific process. The strange behaviour is that if I run ...
FabioEnne's user avatar
  • 133