It's a mess. Why put something in cron that requires attention by a human?
Sounds like an operations staff job.
At any rate, you could simply put all the jobs in one script, and then just have a little loop that checks the hour to make sure that it's been an hour since the previous one started.
something like:
punch_time_clock
backup_one
check_time
is time greater than equal to one hour?
Yes, continue
no, wait a minute and check again.
hi,
I have scripts which are running every 3 minutes. The scripts include connection to a database, using sqlplus. Sometimes, the connection fails (invalid username or password, locked user etc..) and the connection returns the error code, to the unix screen or to a file.
I want whenever there's... (2 Replies)
when i run the scripts from command line like
php ./file.php they run fine and it ends.
But i have them running in crontab every 5 minutes and they sometimes dont close. Can i write something to log why or force them to close after a certain amount of time by killing the pid? (2 Replies)
hi,
i need to run one script in cron...
in that script has connect antoher server and doing sftp for file transfer to another script.
and going to be run another script in another server
ssh ravikus\@server2 /export/home/ravikus/scripts/GetDetailsC2b.sh
it is work fine when i run... (6 Replies)
hi,
instead of typing crontab -e i gave crontab -r and hit enter. So i lost all my scripts.
Is there any way to restore the deleted scripts?
Please help me out
Thanks
Ajay (3 Replies)
I'm trying to create a crontab that runs every hour and runs a script in my $HOME/bin directory.
Everytime it goes to run it I get this mail.
Message 14:
From root@xx.xxxx.edu Thu Apr 12 14:03:01 2012
Return-Path: <root@xx.xxxx.edu>
X-Original-To: bbowers
Delivered-To:... (4 Replies)
Hi All,
I am facing problem running a script which triggers another script in multiple remote servers. my script in my local server looks like below
ssh server1 "sudo -u uname /usr/local/script/start.sh &2>&1 >/dev/null "
ssh server2 "sudo -u uname /usr/local/script/start.sh &2>&1 >/dev/null "... (7 Replies)
Hi,
I have a query related to UNIX Crontab scripts -
Issue: Server space on the db server got 100% full as a result of which the cron scripts did not run. The space utilization issue got resolved in the afternoon. The crons scheduled for a time post the resolution caught up. However the... (1 Reply)
Hello all,
Hope all's well.
i'm not sure if this is possible but i have some scripts running in a crontab with different intervals, 1min, 5 min, etc.
As for a "cleaner" and better control of these scripts (as by time we will have hundred's of scripts used for the same purpose, i.e for Nagios... (4 Replies)
Hi Guys,
I have a main_script.sh which runs every day and scheduled in crontab.
in the main script i read data from config file
test.config
apple
mango
orange
main_script.sh
for i in `cat test.config`
do
if
then
echo 'Apple' (3 Replies)