cron jobs

  1. B

    Solved Crontab vs /etc/cron.x directories

    Hi. I have been working with crontab to schedule jobs. I usually run crontab -l (to list the jobs) or crontab -e (to edit them). Always bearing in mind each user. I also have found the following directories: /etc/anacrontab /etc/cron.d /etc/cron.daily /etc/cron.hourly /etc/cron.monthly...
  2. D

    Cron job not running successfully

    Hi Guys, Apologies if this question is silly, but I am relatively new Linux and I'm having issues getting my cron job to run. My Cron job is as follows: 22 11 * * THU sudo su - nz /nz/support/bin/nz_genstats DBNAME -schema SCHEMANAME > FILENAME.log The cron job does not seem to run...
  3. B

    Cron task doesn't erase directory

    Hi there. I have a php script which creates a temp directory. Then makes other stuff and finally removes the temp directory. If I run the script with user root directly in the CLI, everything works fine. However, the cron task throws an error while trying to delete the temp directory. Crontab...
  4. T

    PowerShell script on Centos fails to run via cron

    Hello everyone I have a PowerShell script that is working absolutely fine when we run manually on centos. (Enter PWSH shell and run the script) But when I schedule cron for the vCheck script it fails and the script does not run. Can anyone please suggest what can be done to schedule the...
  5. A

    Cron Jobs / Crontab - Cannot Create or Edit File

    I try to edit the crontab file to create con jobs by using ssh "sudo crontab -e" and "crontab -e", but I keep getting the following error message (or as shown in the image below): And the file path location "/var/spool/cron/crontabs/" folder is empty. Shouldn't there be a cron file of some...
  6. M

    Save BackUp File in specific location

    Hi there I am pretty new in the Linux world. I am just setting up a MySQL Database and now I want to create an automatic backup job for all the databases. I'm using the following script to create the backup: #!/bin/bash DATE=$(date +%d%m%Y-%H) mysqldump -u backupuser -p'12345'...
  7. A

    Sending Cron.log to mail

    Hello, I have a cron job running every 2 hours and generating a cron.log, I want to receive this log by mail after the cron job is end , I tried this 0 */2 * * * /DATA/scripts/Daily_Script.sh &> /DATA/scripts/cron.log | mail -s "APP2_Monitoring_Log" [email protected] , but I didn't receive...
  8. V

    I had an issue recently. Wanting to monitor cron jobs in real-time. Looking for some feedback and/or suggestions please!

    Hey guys, I have an issue currently where I've got a cron job set to run at midnight each day to reset daily API requests for a service that I run. The job failed recently which caused me a whole bunch of headaches and I've been trying to find a solution to monitor all of my cron jobs so I...
Top