Questions tagged [cronjob]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
15 views

Task Scheduler don't start Task every hour (Windows 10)

I configured a powershell script to grab some reddit rss feed. So I set the task to run every hour once to grab new feed items. But I can only run/trigger it manually. It won't start at every even ...
0
votes
0answers
13 views

How to test cron @reboot entry?

How can I test if @reboot is working without the need of reboot the machine? Is there anyway to force @reboot to entry to run? Thank you.
0
votes
0answers
56 views

Terminal with a command line switch --minimized (or --min etc.)

I am trying tu run terminal commands so a terminal window is shown only in a task bar or even not shown at all. There are some approaches of it with xdotool or wmctrl but they work so the window ...
1
vote
0answers
133 views

McAfee Endpoint Security for Linux Threat Prevention cannot schedule ODS-Tasks [closed]

McAfee Endpoint Security for Linux Threat Prevention, Version : 10.5.4.106 We are working on a Linux server with a pre-installed McAfee. The regular ODS-Scanning has been really annoyed us. So we've ...
0
votes
1answer
77 views

Postgresql pg_dump not working with anacron (cron.daily) on Ubuntu 18.04

I have two files called lb and z-backup. z-backup is a sh script placed in cron.daily which calls the lb (sh) script as an anacron job. These are the files and their locations: ls -l ~/bin/lb -...
0
votes
1answer
69 views

how to add timestamp to file names when moving them to cloud storage using cron job in ssh

I have built an ftp server on google compute engine that receives data from on prem systems as csv. I want to move this data after receiving it to a google cloud storage using a cron job from the vm ...
0
votes
1answer
95 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 ...
0
votes
2answers
32 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/...
0
votes
1answer
45 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 ...
0
votes
1answer
4k 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 ...
0
votes
2answers
450 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?
0
votes
1answer
219 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/...
0
votes
1answer
148 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 ...
0
votes
1answer
1k 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 * * ...
1
vote
0answers
82 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 ...
0
votes
2answers
77 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 ...
0
votes
0answers
15 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, ...
0
votes
2answers
697 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 ...
1
vote
0answers
623 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 ...
0
votes
1answer
263 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 kill and restart a specific process, the strange behaviour is that if i run the ...
0
votes
3answers
62 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 ...
0
votes
1answer
351 views

chmod 777 based on directory

I am wanting to perhaps create a cronjob that will monitor a directory and will do automatically chmod 777 and files that are created inside the directory or a subdirectory of my main directory. Is ...
2
votes
2answers
3k views

Cron Command for twice a month on Sat @12am

I am wondering if someone can help with the simple but sometimes confusing commands regarding Cron jobs. I would like a cron job to run twice a month on a Saturdat @12am.
0
votes
1answer
482 views

Cron file in cron.d isn't running at all, why?

I am unable to run my cron file stored at /etc/cron.d but it wouldn't run for unknown reasons :/ can someone please help? Content of my cron file is as follows: PATH=/usr/local/sbin:/usr/local/...
1
vote
1answer
53 views

Trigger a command upon every `crontab -e` edit

We are using a shared Linux server account where as everyone comes and edits the crontab. Usually we take a backup like this crontab -l > `date +\%Y-\%m-\%d\_\%H:\%M:\%S.txt` Is there an elegant ...
1
vote
1answer
575 views

scheduling with cronjob to run the php file for only one time

How do I run the php file only once using the cron jobs. i.e., to schedule task to work on 20/06/2015 10:30:00 I tried something like this : 30 10 20 6 ? 2015 /usr/bin/php /path/to/my/file/...
0
votes
1answer
562 views

Printer unable to print “blank pages”

I'm using Xerox DocuPrint CP305 d. For some reason, I'm unable to get "blank files" printed. If there are contents within the file —e.g. the word "test", or even just a blank space character&...
4
votes
3answers
23k views

cron expression for every hour starting from specific time

Every one hour (starting from "now") I am able to schedule using this cron expression (expression) using nodejs cron-job. But I need to set cron every one hour starting from a specific time. For ...
0
votes
1answer
501 views

cron job to run for last few days of month (possibly into next)

I'm trying to setup a cron job that will run from the 29th, for 4 days each quarter (Jan/Apr/Jul/Oct). I've setup the following… */10 6-17 29-31 1,4,7,10 1-5 php script.php */10 6-17 1 5 1-5 php ...
0
votes
1answer
788 views

Incron Job is not being executed

I am using incron to monitor one of my file in /var/www/html directory. output of incrontab -l /var/www/html/test IN_ACCESS /home/intel/test.sh This job is supposed to create a file in home ...
2
votes
2answers
2k 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 ~/...
0
votes
0answers
517 views

cPanel/WHM - Assign cron jobs to specific account package automatically

I would like to know if it's possible to, when creating an account in a specific package, automatically assign cron jobs to run in it. Example: I've created the account "example", wich is in package ...
0
votes
1answer
1k views

Shell script not running with cronjob

I am using PUTTY to reach the server. I can dump the databases with the following command: /usr/bin/mysqldump --all-databases | /bin/gzip > Backup_DB/alldatabases_test.sql.gz When I am running ...
0
votes
1answer
26 views

Do cronjobs run in CLI?

I am running PHP 5.5 with ZendOPcache integrated. There are two options for this extension - is cache enabled (which I've set to true), and the second one - is CLI cache enabled, which I've set to ...
0
votes
1answer
627 views

Auto backup a directory to ftp server with separate files

I have 2 Ubuntu servers (Master and Mirror) and want to use cronjob to auto backup from specific directory. I read this. It is OK but not matched my task. Description my task: Work as real mirror, ...
0
votes
1answer
117 views

Create a folder in Win 7 where files will be deleted after a specified period automatically

I would like to have a folder to put items for temporary use and after a certain amount of time they would be deleted Is this possible in Windows 7? I've through of maybe some sort of .bat file in ...
2
votes
1answer
4k views

Cronjob for first day of month except sunday

I have such entry in my crontab: 0 0 1-2 * 1-6 It is correct that it would run at 00:00, 1st or 2nd day of the month from Monday to saturday? For example, if 1st day will be sunday then it would not ...
-2
votes
2answers
162 views

cronjob for creating two files with 2 GB of size each

I need to create a cron job that runs every hour. This cron job should create two files, each 2GB, one should be created from /dev/urandom and the other one from /dev/zero and should be written to a ...
0
votes
0answers
42 views

PERL executable size getting reduced automatically after few days

On one of my RHEL 5 machine, there is one PERL executable which runs under cronjob at frequent intervals of time. The strange thing observed is PERL executable size is getting reduced automatically ...
1
vote
1answer
1k views

Running a cron job every five minutes

I need to run a cron for sync command. Is it as simple as this? */5 * * * * --sync Which I think will run the sync command every 5 minutes.
1
vote
1answer
1k views

Enabling crontab logging on openSUSE

I am trying to enable the crontab log on openSUSE 11.3. I searched the web but couldn't find how to do it. I only find information about Ubuntu. Tried editing the /etc/rsyslog.d/remote.conf file but I ...
1
vote
1answer
151 views

Why this cronjob wont run

On debian squeeze as user root I add this cronjob with "crontab -e" */1 * * * * root /usr/sbin/ntpdate ptbtime1.ptb.de >> /var/log/ntpdate.log But this cronjob will not run, there is also ...
2
votes
1answer
800 views

I created Cron but I get errors that don't really understand

I created a crontab like this: 0 22 * * 2 /bin/echo " Hello World " 0 1 * * * /bin/echo " Test" but I receive mails like this, what does it mean? Subject: Cron /bin/echo " Test" Content-Type:...
0
votes
1answer
576 views

Cron Job Command To Delete 0 Byte Files

I need to have a Cron Job, that when it runs automatically deletes all of the files inside of a folder that are exactly 0 bytes. The script I am using allows users to enter their username so it ...
2
votes
0answers
152 views

Mac Crontab Deleted

I was messing around with creating cron jobs and somehow I wound up deleting crontab out of /usr/bin. Does anyone know of a way that I can recover it without having to re-install multiple components ...
0
votes
0answers
563 views

Issue in running cron jobs in RHEL5

When I try to run cron jobs from root, I am getting the following error. I am using RHEL5. Can anyone help me? [root@localhost]# crontab -e Permission denied You (root) are not allowed to ...
-5
votes
1answer
203 views

Schedule a cronjob start everyday automatically [duplicate]

Possible Duplicate: Is there a way to have Linux run a command every X minutes? I want to run a command which will be synchronize my remote folder data to my local computer. command is sync -ave '...
0
votes
1answer
83 views

synchronize folders which are located on different servers [duplicate]

Possible Duplicate: Synchronise system changes on two computers? how to synchronize two folders which are located on different servers. I need that if someone put any data on folder A then it ...
2
votes
1answer
463 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 ...
19
votes
1answer
13k views

Where to store cronjob script?

I'd prefer to not keep it in my /home/myusername directory. Is there a best practice of where to store your shell scripts for cronjobs? At the root level? I'm running ubuntu server 12.04 right now.