Skip to main content

Questions tagged [cronjob]

The tag has no usage guidance.

0 votes
1 answer
1k views

Automating SFTP transfers

I'm new - Very new to UNIX and have been dropped in the deep end. I an trying to automate the transfer of files from a remote SFTP server back to our SFTP server, I need to login using an SSH ...
Paul's user avatar
  • 1
1 vote
2 answers
314 views

cron job not executing the binary in the time specified

I would like to check which is the environment being used if executing a cron job. I had it working before however it stopped at some point. This is my cron job in the crontab file: 20 13 * * * /usr/...
birdman's user avatar
  • 111
0 votes
1 answer
387 views

How to know why crontab job is not executed

I have set several cron jobs. I recently added a new cron job that copies a file of last day from another server and is executed each day (for example at 06:00 am) but when I check next day the file ...
Ger Cas's user avatar
  • 139
0 votes
1 answer
5k views

How do i set up a cronjob in mac os that runs every 15 mins [duplicate]

I have a command that gets the utilization status of my infra and it needs to be run every 15mins. how do I set a cronjob for that in Mac OS. I searched for cron.hourly and cron.weekly but could not ...
user922321's user avatar
1 vote
2 answers
1k views

How to automatically restart crond if it is not running?

I use cron job to monitor and restart other services if they are not running. But how to monitor/restart crond itself?
peter's user avatar
  • 393
0 votes
1 answer
540 views

Crontab does not launch when log out

On a google Cloud Ubuntu VM, I have setup few crontab like below : 0 15 * * * sudo /home/username/bin/python /home/username/project27/scheduler/batch.py &>> /home/username/project27/...
quantCode's user avatar
  • 111
0 votes
1 answer
255 views

Linux: cPanel queued mail stop

I got a serious mistake: I have a cronjob to send bulk email to my customers, but accidentally it worked and now some of our customers recieving the mails, I already deleted the cron job and deleted ...
Riyas Muhammed's user avatar
0 votes
1 answer
4k views

Cron Job Run Only Once

I set a cron job in CPanel , I am using hostinger, but it only run once even though I scheduled it to run twice in an hour, what may be the problem? **Time** **Command To Run** 0 0,12 * * ...
AndroidHacker's user avatar
1 vote
0 answers
93 views

Rebooting a Linux server with best practices. Should I save what?

I would like to know what steps should I take before rebooting a Linux server to avoid losing the configuration. Example: I made a rule with iptables manually, did not add to rc.local. This won't ...
Marlon's user avatar
  • 379
0 votes
2 answers
255 views

Install cronjob from file to a specific user

I have an install script that sets up a user. Using the install script, I want to apply a cronjob that gets executed by that user (myuser): 0 4 * * * /home/myuser/script-to-run-at-4am.sh I have ...
algorhythm's user avatar
0 votes
0 answers
20 views

cronjob not finding commands [duplicate]

I am running (and also new to) OS X El Capitan. I have a user cronjob that is using some basic commands that I got via brew. wget and s3cmd I have the cronjob executing a shel script in my user bin, ...
Joff's user avatar
  • 227
0 votes
2 answers
4k views

Cron job string settings to fire 4 times a day in between 5-10

* 5-10 * * * will fire the script between the said timings but how will I control the count? BTW the count and the timings can be anything, means it will be dynamic and not static. Just put up a ...
Arnab Ghosh's user avatar
1 vote
1 answer
949 views

Many cron -f processes on unresponsive server

My Debian server had again become unresponsive and needed to be restartet (SSH login impossible, no longer transmitted log data to another server's MySQL Database, no new FTP connections possible, but ...
azren's user avatar
  • 111
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
0 votes
3 answers
71 views

Log time spent between switch a Windows on and off

I want to log the time I spend between switching my PC on and when I switch it off; like have a text file updated with records of each time I switch my PC in the morning and switch it off at the ...
Abdessamad Idrissi's user avatar

15 30 50 per page