10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can I run a script no more than twice a day without using cron?
Maybe create a file when script is first run and check its date? (7 Replies)
Discussion started by: drew77
7 Replies
2. UNIX for Beginners Questions & Answers
Hi All
I have created a file in /etc/cron.daily on redhat linux 7.3 version host
called applicationscript
cat applictaionscript
#!/bin/bash
/prod/data/routine.sh
cat /prod/data/routine.sh
#!/bin/bash
#details
regular=/prod/data/jboss/logs
backup=/prod/data/logs
#echo "Moving logs"... (3 Replies)
Discussion started by: anil529
3 Replies
3. Shell Programming and Scripting
Hi,
1)
If some job supposed to run on 1st of every month at 7 AM
In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day?
2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct)
And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies
4. Solaris
Hi ,
I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility )
I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
Discussion started by: chidori
4 Replies
5. UNIX for Dummies Questions & Answers
Hi guys,
I've got two separate logrotates I'd like to run, one for Tomcat and one for Apache, but I'd like to run the Tomcat one daily and the Apache one weekly. Now, the logrotate itself is working fine, but although I have 'daily' in Tomcat, and 'weekly' in the Apache one, the latter is... (2 Replies)
Discussion started by: jimbob01
2 Replies
6. Shell Programming and Scripting
Need help on this script.
the month is not changing to February...
#!/bin/bash
for X in `seq 1 100`
do
DATE=`date +%Y-%m-%d "--date=${X} day ago"`
Y=`date +%Y`
M=`date +%m`
D=`date +%d "--date=${X} day ago"`
DIR=/home/LogBackup
for i in `seq 1 `
do
if ;then
# ... (1 Reply)
Discussion started by: alelee
1 Replies
7. Shell Programming and Scripting
I had a cron file named mycron.cron and this file has cron jobs runs through out 365 days (jobs in the file mycron.cron run hourly, daily, weekly, monthly, quarterly and yearly). Is there an easy way to find what are the jobs scheduled today and what time they are scheduled to run?
Thanks in... (1 Reply)
Discussion started by: sureng
1 Replies
8. UNIX for Dummies Questions & Answers
Hi guys,
I´m a newbie in Linux, but I´m trying to solve some problems studying on my own, but I´ve had some problems with AWK.
Look, I have one single backup log file per server and I want to make a daily delection from the last backup job to show in a intranet of my work.
The log files are from... (0 Replies)
Discussion started by: metalfreakbr
0 Replies
9. UNIX for Dummies Questions & Answers
At what time does cron.daily implement and how can i change this or set it etc?
Thanks in advance. (5 Replies)
Discussion started by: ITFcraig
5 Replies
10. Linux
Hello Guys.
I really need some help creating a cron job.
I want to back up my mySQL database, which runs a phpBB Forum.
I need the backup to run every 6 hours - but the host can make it run every 6 hours.
I need it to backup to a directory called Backups (on the root) and i dont want it... (1 Reply)
Discussion started by: dhoodle
1 Replies