or you could just let the script sleep every 5 seconds ... start it from cron every start of the hour ... script sample below wil exit if $lockfile exists ... removing lockfile will kill running script ...
I scheduled 2 Oracle jobs to run on IBM AIX 4.3.3 at
06:50 and 06:58 on 02/02/03 with the below syntax:
$ at 06:50 02/02/03 /orac/ora11/temp/sun_job1.sh
Job oracle.1044175800.a will be run at Sun Feb 2 06:50:00 2003.
$ at 06:58 02/02/03 /orac/ora11/temp/sun_job2.sh
Job... (1 Reply)
Hello,
I want to know about job scheduling utilities available in unix. It should not be responsible just for starting the job like in case of cron but should also be able to handle the execution of jobs.
Regards,
Ritesh (1 Reply)
I am working on UNIX AIX system, with Oracle OS.
We are not supposed to use any tools to schedule our unix shell scripts.
Basically we have to make use of Oracle tables and Shell scripts to manage dependencies, restartability, scheduling, parallelizing,etc.
If anyone has worked/ is working... (1 Reply)
I am working on UNIX AIX system, with Oracle OS.
We are not supposed to use any tools to schedule our unix shell scripts.
Basically we have to make use of Oracle tables and Shell scripts to manage dependencies, restartability, scheduling, parallelizing,etc.
If anyone has worked/ is working... (4 Replies)
Hello All,
I want to run a script for every 5 minutes interval.So i developed a script which has to be scheduled to run for every 5 minutes. That script internally runs another script. But the problem is it is not executing properly. Can anybody throw some light on this.
Below are the code... (4 Replies)
Hi All,
I have a script which is scheduled in the Cron. It runs every 10th and 40th min of an hour.The job has to run every 30min.
But, I do not want to have the 00:10 MST run every day.Is it possible to exclude that run from the schedule?Or any other way through which i can run my job every... (4 Replies)
Hi All,
I've been trying to schedule a job using the at command on Solaris 5.10 but i've been running into some issue. ( Not allowed to use cron :wall: )
I have a script that reads a logs file, does some iteration and cat's the output in an email .
## the o/p of /home/myscript.sh is : ... (2 Replies)
Hi All,
I am new to unix and i have a task in front of me.
The code part is "android update sdk" . I need to crontab this process.
Hence i have written a script that runs the above command and sends a mail once the update is done. The problem with the automation is the installer asks for a... (5 Replies)
Discussion started by: Kashyap
5 Replies
LEARN ABOUT PHP
set_time_limit
SET_TIME_LIMIT(3) 1 SET_TIME_LIMIT(3)set_time_limit - Limits the maximum execution timeSYNOPSIS
bool set_time_limit (int $seconds)
DESCRIPTION
Set the number of seconds a script is allowed to run. If this is reached, the script returns a fatal error. The default limit is 30 sec-
onds or, if it exists, the max_execution_time value defined in the php.ini.
When called, set_time_limit(3) restarts the timeout counter from zero. In other words, if the timeout is the default 30 seconds, and 25
seconds into script execution a call such as set_time_limit(20) is made, the script will run for a total of 45 seconds before timing out.
PARAMETERS
o $seconds
- The maximum execution time, in seconds. If set to zero, no time limit is imposed.
RETURN VALUES
Returns TRUE on success, or FALSE on failure.
NOTES
Warning
This function has no effect when PHP is running in safe mode. There is no workaround other than turning off safe mode or changing
the time limit in the php.ini.
Note
The set_time_limit(3) function and the configuration directive max_execution_time only affect the execution time of the script
itself. Any time spent on activity that happens outside the execution of the script such as system calls using system(3), stream
operations, database queries, etc. is not included when determining the maximum time that the script has been running. This is not
true on Windows where the measured time is real.
SEE ALSO
max_execution_time, max_input_time.
PHP Documentation Group SET_TIME_LIMIT(3)