How to get correct field/column from autosys autorep command. I'm using GNU/Linux
I'm trying to get the difference of last end and last start and the status (ST).
In awk, i get the following excluding the heading part
$1 - jobname
$2 - Last Start date
$3 - Last Start time
$4 - Last End date
$5 - Last End time
$6 - Status (ST)
However the above result changes if date/time is '-----' and will get the following results.
$1 - jobname
$2 - -----
$3 - -----
$4 - Last End date
I'm trying to get the correct field names to its correct variable (either date and time to separate variables or to one variable).
Lets say, I have the following example.
Let me know the better way if not awk..
Last edited by bobbygsk; 08-07-2012 at 05:23 PM..
Reason: Additional info
My project uses Autosys.
I am new to this product and I don't know where to start from.
Q1. Please provide me the link where I can get Autosys documentation
Q2. Please refer a good book on Autosys. (Beginner/Intermediate Level) (0 Replies)
Hi, how can i use unix shell command to get the autosys commands
for a set of given jobs?
autorep -J EMP% -w
returns all autosys jobnames starting with EMP and runtimes
However, i also want to see the autosys 'command' corresponding to the above jobs.
I don't want to sql query the... (1 Reply)
Hi there,
my problem is, that i need to get all jobs with status from a autosys instance.
If I use
autorep -J ALL -d >joblist.txt
longer Jobnames will be cut and the end will be replaced by 3 points like this
"ThisIsALongerJobNameAnd..."
If i try a single job query like
... (7 Replies)
hi,
i have autosys installed on unix.
i use "autorep -j t8i%" command to see the scheduled jobs. now i have changed some of the jobs and saved them too.
i gave the command jil< filename.jil to again insert the jobs. but my problem is what is the command to run all the jobs again so that i... (8 Replies)
All the autosys jobs are on server-1 and server-1 has been crashed due to some reason, Now I have to run 5 autosys jobs on server-2 (failover server) which are on server 1.
How to do with Autosys command (which command needs to fired on JIL) (0 Replies)
Hi,
I am using AUTOSYS GUI based tool. But I want to get the job status from the UNIX command prompt.
1. I want to execute only autorep command in the UNIX command prompt.
If need to execute this command what are the settings need to do that.
2. Is it possible for executing this... (5 Replies)
I have created UNIX script for getting information for the autosys jobs using autorep command.
Job_name=temp_job1
echo $Job_name
autorep -j $job_name -l0
After running the script I am getting the below error
Error while loading shared libraries: libautoeac_api.so: cannot share object... (1 Reply)
I'm trying to modify the script given in post 7 of the following thread: 146564-need-parse-jil-file-into-excel-file.html. (Sorry, can't post the URL as I don't have enough posts.)
The original script is as follows:
awk -F ' *_]*: *' 'BEGIN ... (9 Replies)
Good evening, Im newbie at unix specially with awk
From an scheduler program called Autosys i want to extract some data reading an inputfile that comprises jobs names, then formating the output to columns for example
1.
This is the inputfile:
$ more MapaRep.txt
ds_extra_nikira_usuarios... (18 Replies)
Discussion started by: alexcol
18 Replies
LEARN ABOUT DEBIAN
moosex::types::iso8601
MooseX::Types::ISO8601(3pm) User Contributed Perl Documentation MooseX::Types::ISO8601(3pm)NAME
MooseX::Types::ISO8601 - ISO8601 date and duration string type constraints and coercions for Moose
SYNOPSIS
use MooseX::Types::ISO8601 qw/
ISO8601TimeDurationStr
/;
has duration => (
isa => ISO8601TimeDurationStr,
is => 'ro',
coerce => 1,
);
Class->new( duration => 60 ); # 60s => PT00H01M00S
Class->new( duration => DateTime::Duration->new(%args) )
DESCRIPTION
This module packages several TypeConstraints with coercions for working with ISO8601 date strings and the DateTime suite of objects.
DATE CONSTRAINTS
ISO8601DateStr
An ISO8601 date string. E.g. "2009-06-11"
ISO8601TimeStr
An ISO8601 time string. E.g. "12:06:34Z"
ISO8601DateTimeStr
An ISO8601 combined datetime string. E.g. "2009-06-11T12:06:34Z"
ISO8601DateTimeTZStr
An ISO8601 combined datetime string with a fully specified timezone. E.g. "2009-06-11T12:06:34+00:00"
COERCIONS
The date types will coerce from:
" Num "
The number is treated as a time in seconds since the unix epoch
" DateTime "
The duration represented as a DateTime object.
" Str "
Non-expanded date and time string representations.
e.g.:-
20120113 => 2012-01-13 170500Z => 17:05:00Z 20120113T170500Z => 2012-01-13T17:05:00Z
Representations of UTC time zone (only an offset of zero is supported)
e.g.:-
17:05:00+00:00 => 17:05:00Z 17:05:00+00 => 17:05:00Z 170500+0000 => 17:05:00Z
2012-01-13T17:05:00+00:00 => 2012-01-13T17:05:00Z 2012-01-13T17:05:00+00 => 2012-01-13T17:05:00Z 20120113T170500+0000 =>
2012-01-13T17:05:00Z
Also supports non-standards mixing of expanded and non-expanded representations
e.g.:-
2012-01-13T170500Z => 2012-01-13T17:05:00Z 20120113T17:05:00Z => 2012-01-13T17:05:00Z
DURATION CONSTRAINTS
ISO8601DateDurationStr
An ISO8601 date duration string. E.g. "P01Y01M01D"
ISO8601TimeDurationStr
An ISO8601 time duration string. E.g. "PT01H01M01S"
ISO8601DateTimeDurationStr
An ISO8601 comboined date and time duration string. E.g. "P01Y01M01DT01H01M01S"
COERCIONS
The duration types will coerce from:
" Num "
The number is treated as a time in seconds
" DateTime::Duration "
The duration represented as a DateTime::Duration object.
The duration types will coerce to:
" Duration "
A DateTime::Duration, i.e. the " Duration " constraint from MooseX::Types::DateTime.
SEE ALSO
o MooseX::Types::DateTime
o DateTime
o DateTime::Duration
o DateTime::Format::Duration
VERSION CONTROL
http://github.com/bobtfish/moosex-types-iso8601/tree/master
Patches are welcome.
SEE ALSO
o http://en.wikipedia.org/wiki/ISO_8601
o http://dotat.at/tmp/ISO_8601-2004_E.pdf
FEATURES
Fractional seconds
If provided, the number of seconds in time types is represented to microsecond accuracy. A full stop character is used as the decimal
seperator, which is allowed, but deprecated in preference to the comma character in ISO 8601:2004.
BUGS
Probably full of them, patches are very welcome.
Specifically missing features:
o No timezone support - all times are assumed UTC
o No week number type
o "Basic format", which lacks seperator characters, is not supported for reading or writing.
o Tests are rubbish.
AUTHOR
Tomas Doran (t0m) "<bobtfish@bobtfish.net>"
Dave Lambley "<davel@state51.co.uk>"
The development of this code was sponsored by my employer <http://www.state51.co.uk>.
Contributors
Aaron Moses
COPYRIGHT
Copyright (c) 2009 Tomas Doran. Some rights reserved.
This program is free software; you can redistribute
it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-05-11 MooseX::Types::ISO8601(3pm)