07-10-2008
How Do You Know When It's Time To Quit The Job?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a job that runs for an unspecified amount of time. I want to run this as a cron job for a specified amount of time, say 2 hours. Once the time is up, the program should be killed in the middle of execution. How can I do this?
Thanks. (5 Replies)
Discussion started by: cooldude
5 Replies
2. Shell Programming and Scripting
Hello All,
I would like to know if it is possible to launch a job in background for infinite time.
example:
myScript.ksh
while true
do
( echo "(`date`)"; top -U user | grep 'Memory:' ) >> log &
sleep 1800
done
and when i do... (5 Replies)
Discussion started by: midhun_u
5 Replies
3. Shell Programming and Scripting
Is there anyway to get the start time and end time / status of a crontab job which was just completed? Of course, we know the start time of the crontab job since we are scheduling. But I would like to know process start and time recorded somewhere or can be fetched from a command like 'ps'. ... (3 Replies)
Discussion started by: thambi
3 Replies
4. Shell Programming and Scripting
how can i read input to quit any time, for instance "type q to quit"
I have a script like this
echo "The first choice"
read firstChoice
echo "The second choice"
read secondChoice
Looking for a code to quit any time by pressing q to quit
any help would be appreciated
thanks (5 Replies)
Discussion started by: Qwond
5 Replies
5. UNIX for Dummies Questions & Answers
Im having a problem with my ftp CRON jobs. I have another related (but not the same question in shell scripting).
My FTP CRON jobs connect to a server and drop some files off, if for some reason it cannot connect to the server (timesout/password wrong etc) instead of stopping, it tries again... (3 Replies)
Discussion started by: mokachoka
3 Replies
6. UNIX for Advanced & Expert Users
how can we identify the task completion time which was initiated by CRON.
we have 1000 of jobs whihc are runing from cron so it is not feasable to edit every cron entry or every script to add the respective code to find teh completion time.
Can some one please provide a inut to find the task... (3 Replies)
Discussion started by: NIMISH AGARWAL
3 Replies
7. UNIX for Dummies Questions & Answers
Hi ,
We have 20 jobs are scheduled.
In that one of our job is taking long time ,it's not completing.
If we are not terminating it's running infinity time actually the job completion time is 5 minutes.
The job is deleting some records from the table and two insert statements and one select... (7 Replies)
Discussion started by: ajaykumarkona
7 Replies
8. Shell Programming and Scripting
Hi
Can anyone tell me how to check the autosys job creation time.
i mean how to check when a particular job is created.
Thanks in Advance. (3 Replies)
Discussion started by: diehard
3 Replies
9. UNIX for Dummies Questions & Answers
Dear *nix users.
I'm on Mac OS 10.6 / Terminal and try to use crontab to schedule two scripts every 30 minutes and every 41 minutes.
I followed the man instructions and created / installed a crontab file for the current user:crontab -e
with the following content
*/30 * * * *... (4 Replies)
Discussion started by: moxnos
4 Replies
LEARN ABOUT CENTOS
tap::parser::scheduler::job
TAP::Parser::Scheduler::Job(3) User Contributed Perl Documentation TAP::Parser::Scheduler::Job(3)
NAME
TAP::Parser::Scheduler::Job - A single testing job.
VERSION
Version 3.28
SYNOPSIS
use TAP::Parser::Scheduler::Job;
DESCRIPTION
Represents a single test 'job'.
METHODS
Class Methods
"new"
my $job = TAP::Parser::Scheduler::Job->new(
$filename, $description
);
Given the filename and description of a test as scalars, returns a new TAP::Parser::Scheduler::Job object.
Instance Methods
"on_finish"
$self->on_finish(&method).
Register a closure to be called when this job is destroyed. The callback will be passed the "TAP::Parser::Scheduler::Job" object as it's
only argument.
"finish"
$self->finish;
Called when a job is complete to unlock it. If a callback has been registered with "on_finish", it calls it. Otherwise, it does nothing.
Attributes
$self->filename;
$self->description;
$self->context;
These are all "getters" which return the data set for these attributes during object construction.
"filename"
"description"
"context"
"as_array_ref"
For backwards compatibility in callbacks.
"is_spinner"
$self->is_spinner;
Returns false indicating that this is a real job rather than a 'spinner'. Spinners are returned when the scheduler still has pending jobs
but can't (because of locking) return one right now.
perl v5.16.3 2013-05-02 TAP::Parser::Scheduler::Job(3)