CA::AutoSys::Job - Object representing an AutoSys job.
my $job = $jobs->next_job() ;
Returns the next job from a list of jobs previously acquired by a call to find_jobs().
my $children = $job->find_children() ;
Returns child jobs for a given job object. The child jobs can be traversed like this:
my $children = $job->find_children() ; while (my $child = $children->next_child()) { # do something : }
my $child = $children->next_child() ;
Returns the next child from a list of child jobs previously acquired by a call to "find_children() ".
my $status = $job_or_child->get_status() ;
Returns a hashref that can be queried for job status variables. See CA::AutoSys::Status for a list of possible status variables.
my $rc = $job->has_children() ;
Returns 1 if the given job/child has children, 0 otherwise.
print "job_name: ".$job->{job_name}."\n";
Contains the name of the AutoSys job.
print "job_type: ".$job->{job_type}."\n";
Contains the type of the job, c=JOB, b=BOX.
print "joid: ".$job->{joid}."\n";
Contains the internal job id in the AutoSys database.
CA::AutoSys::Status, CA::AutoSys
Sinisa Susnjar <sini@cpan.org>
Copyright (c) 2007 Sinisa Susnjar. All rights reserved.
This program is free software; you can use and redistribute it under the terms of the L-GPL. See the LICENSE file for details.
2 POD Errors
The following errors were encountered while parsing the POD:
L<> starts or ends with whitespace
To install CA::AutoSys, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CA::AutoSys
CPAN shell
perl -MCPAN -e shell install CA::AutoSys
For more information on module installation, please visit the detailed CPAN module installation guide.