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)
Hello Friends,
I've been searching solutions for an exceptional backup case recently, I need someone to guide me, suggest a method pls.
In a production system we have backup scripts, they are run by cron one after another, and monthly. There is 1 hour difference between each consecutive script... (1 Reply)
Hi all
I installed Debian and i have a few scripts that outputs what is happening.
The wierd part...after fresh install all works ok but after i open or edit Crontab it stops executing the scripts...and scripts runs manually so its not a problem with scripts...what happens is that i usually... (3 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)
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)
Hi Forum,
Good Day!
I have created an empty html file wtih permissoin 777
created shell script(with permission 777) , code is below.
#=======================start==============
. /data09/oracle/apps_st/appl/D_oraapp095.env
rm -rf /home/mnp/Test_log.txt
echo... (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)
Discussion started by: nms
4 Replies
LEARN ABOUT SUSE
set::crontab
Crontab(3) User Contributed Perl Documentation Crontab(3)NAME
Set::Crontab - Expand crontab(5)-style integer lists
SYNOPSIS
$s = Set::Crontab->new("1-9/3,>15,>30,!23", [0..30]);
if ($s->contains(3)) { ... }
DESCRIPTION
Set::Crontab parses crontab-style lists of integers and defines some utility functions to make it easier to deal with them.
Syntax
Numbers, ranges, *, and step values all work exactly as described in crontab(5). A few extensions to the standard syntax are described
below.
< and >
<N selects the elements smaller than N from the entire range, and adds them to the set. >N does likewise for elements larger than N.
! !N excludes N from the set. It applies to the other specified range; otherwise it applies to the specified ranges (i.e. "!3" with a
range of "1-10" corresponds to "1-2,4-10", but ">3,!7" in the same range means "4-6,8-10").
Functions
new($spec, [@range])
Creates a new Set::Crontab object and returns a reference to it.
contains($num)
Returns true if $num exists in the set.
list()
Returns the expanded list corresponding to the set.
The functions described above croak if they are called with incorrect arguments.
SEE ALSO crontab(5)AUTHOR
Abhijit Menon-Sen <ams@toroid.org>
Copyright 2001 Abhijit Menon-Sen <ams@toroid.org>
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.1 2008-07-30 Crontab(3)