CA::AutoSys is a handy Perl interface for managing CA's AutoSys job control. If you're looking to streamline your job management, this tool can really help!
To kick things off, you'll want to use the software like this:
use CA::AutoSys;
Now you can create a new handle:
my $hdl = CA::AutoSys->new([OPT]);
This piece of code sets up your new AutoSys object. Pretty simple, right?
If you need to find some jobs, just call:
my $jobs = $hdl->find_jobs($jobname);
This will get you a list of jobs based on the name you provide. Then you can loop through them like so:
while (my $job = $jobs->next_job()) {
# do something with each job
}
You might want to check on the status of a job too. You can do that with:
my $status = $job->get_status();
If there are any child jobs linked to it, you can find those as well:
my $children = $job->find_children();
while (my $child = $children->next_child()) {
# do something with each child job
}
The new() method lets you create a new instance of CA::AutoSys.
You’ll need some options when doing that. Here’s what you should know:
An example would look like this:
my $hdl = CA::AutoSys->new(server => "AUTOSYS_DEV");
If you're excited about trying out CA::AutoSys and want more details or downloads, check out this link: Your download here!.
Go to the Softpas website, press the 'Downloads' button, and pick the app you want to download and install—easy and fast!
SoftPas is your platform for the latest software and technology news, reviews, and guides. Stay up to date with cutting-edge trends in tech and software development.
Subscribe to newsletter
© Copyright 2024, SoftPas, All Rights Reserved.