07-12-2016
Urgent. Script to identify child jobs in autosys recursively
I have been working on to neatly present the job dependency lineage in autosys through ksh/perl and I am having trouble in recursively finding the dependency.
it will be great if anyone could share their thoughts on this.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need to search for a failed status of 2 autosys jobs which write to the same logfile. Is there any way to do that on one line? I already know the following doesn't work, but is there a way to get it to work, or will I have to do a loop?
RUN_STATUS=autorep -J jobname jobname
if
then
... (1 Reply)
Discussion started by: tekster757
1 Replies
2. Solaris
how can we identify which child shell being created by the sh command.
Is it necessary that the child shell created will be the same as parent shell or it may be different.
How can we change this setting?
please help
Thanks in advance (1 Reply)
Discussion started by: arpit_narula
1 Replies
3. Shell Programming and Scripting
post deleted ... (2 Replies)
Discussion started by: Data469
2 Replies
4. Shell Programming and Scripting
hello There,
I am pretty much new to Shell Scripting and also to AutoSys. I would like to know how to list the Autosys jobs in FA status using shell scripting. I would like to get an email alert as and when any Autosys job fails. Also, it should give the path of the Log file.
Could you please... (0 Replies)
Discussion started by: supragna
0 Replies
5. UNIX for Dummies Questions & Answers
Hello There,
I am pretty much new to Shell Scripting and also to AutoSys. I would like to know how to list the Autosys jobs in FA status using shell scripting. I would like to get an email alert as and when any Autosys job fails. Also, it should give the path of the Log file.
Could you please... (5 Replies)
Discussion started by: supragna
5 Replies
6. UNIX for Advanced & Expert Users
Hi
I have 2 autosys jobs (JobA and JobB) both are in different boxes but part of one big box. I want to make them mutually exclusive so that when JobA is running then JobB should not run and wait for jobA to finish/fail/terminate and vice versa.
Both jobs have their own starting conditions... (1 Reply)
Discussion started by: SPJ47
1 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have a script that take one parameter as an input.
for example:
./clean.sh <foldername>
There are 7 different folder names that we can provide to my script and my script would delete the contents of that folder that was passed as an argument.
Inorder to have this script... (3 Replies)
Discussion started by: shifahim
3 Replies
8. UNIX for Advanced & Expert Users
Hi all,
Does any body know how to recursively run a Autosys Box with different parameters ? For ex: I have a master autosys box that needs to run for JAN 2011, then FEB 2011 .... DEC 2011. FYI, each monthly execution runs for about a day. Is there a way to automate this so that my master... (0 Replies)
Discussion started by: calredd
0 Replies
9. UNIX for Dummies Questions & Answers
Can anyone please tell me how to refresh the jobs in Autosys Scheduler?
---------- Post updated at 03:19 PM ---------- Previous update was at 03:18 PM ----------
I need a command to refresh it. (2 Replies)
Discussion started by: Lakme Pemmaiah
2 Replies
10. Shell Programming and Scripting
I have been working on to neatly present the job dependency lineage in autosys through ksh/perl and I am having trouble in recursively finding the dependency.
it will be great if anyone could share their thoughts on this.?
I know that job_depends in autosys will help me give first level of... (0 Replies)
Discussion started by: Vhunt
0 Replies
LEARN ABOUT DEBIAN
debian::control::fromcpan
Debian::Control::FromCPAN(3pm) User Contributed Perl Documentation Debian::Control::FromCPAN(3pm)
NAME
Debian::Control::FromCPAN - fill debian/control from unpacked CPAN distribution
SYNOPSIS
my $c = Debian::Control::FromCPAN->new();
$c->discover_dependencies( { ... } );
$c->prune_perl_deps;
Debian::Control::FromCPAN inherits from L<Debian::Control>.
METHODS
discover_dependencies( [ { options hash } ] )
Discovers module dependencies and fills the dependency fields in debian/control accordingly.
Options:
apt_contents
An instance of Debian::AptContents to be used when locating to which package a required module belongs.
dir The directory where the cpan distribution was unpacked.
intrusive
A flag indicating permission to use Module::Depends::Intrusive for discovering dependencies in case Module::Depends fails. Sinse
this requires loading all Perl modules in the distribution (and running their BEGIN blocks (and the BEGIN blocks of their
dependencies, recursively), it is recommended to use this only when dealing with trusted sources.
require_deps
If true, causes the method to die if some a package for some dependency cannot be found. Otherwise only a warning is issued.
verbose
wnpp_query
An instance of Debian::WNPP::Query to be used when checking for WNPP bugs of depeended upon packages.
Returns a list of module names for which no suitable Debian packages were found.
find_debs_for_modules dep hash[, APT contents[, verbose ]]
Scans the given hash of dependencies ( module => version ) and returns matching Debian package dependency specification (as an instance
of Debian::Dependencies class) and a list of missing modules. Installed packages are searched first, then the APT contents, then the
perl core.
prune_simple_perl_dep
Input:
dependency object
shall be a simple dependency (no alternatives)
(optional) build dependency flag
true value indicates the dependency is a build-time one
The following checks are made
dependencies on "perl-modules"
These are replaced with "perl" as per Perl policy.
dependencies on "perl-base" and build-dependencies on "perl" or "perl-base"
These are removed, unless they specify a version greater than the one available in "oldstable" or the dependency relation is not
">=" or ">>".
Return value:
undef
if the dependency is redundant.
pruned dependency
otherwise. "perl-modules" replaced with "perl".
prune_perl_dep
Similar to "prune_simple_perl_dep", but supports alternative dependencies. If any of the alternatives is redundant, the whole
dependency is considered redundant.
prune_perl_deps
Remove redundant (build-)dependencies on perl, perl-modules and perl-base.
COPYRIGHT & LICENSE
Copyright (C) 2009, 2010 Damyan Ivanov dmn@debian.org
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
perl v5.14.2 2012-01-15 Debian::Control::FromCPAN(3pm)