02-12-2013
Works as expected. Thanks!
One more question. How do I get it to process each job in the file? Currently, it's only doing the first one.
A new record could be identified with each insert_job it finds.
Thank you!
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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)
Discussion started by: gram77
0 Replies
2. UNIX for Advanced & Expert Users
Hi I'm very new to this Autosys JIL scripts. Now I need to create an Command to copy the file from one folder to another by watching that folder.
I have written & create that job but i don't no how to add logging in JIL script.
Before moving the file i have to log the file details in a separte... (0 Replies)
Discussion started by: vijayvz
0 Replies
3. UNIX for Advanced & Expert Users
Hi All,
I wanted to know what time the box jobs were loaded into a particular Autosys Instance.
Is there a autosys command to find out the above? (The timestamp at which a box was loaded)
I had loaded my JIL script without outputting it to the log file. (4 Replies)
Discussion started by: grep_me
4 Replies
4. UNIX for Advanced & Expert Users
if you want to parse the output from an autosys you can use the below
autorep -j Prefix_% | awk '{
if ($6 ~ /^/)
printf "%-20s \t\t %-20s\n",$1,$5 ;
else if ($6 ~ /^/)
printf "%-20s \t\t %-20s\n",$1,$6;
else
printf "%-20s \t\t %-20s\n",$1,$4
}' | awk '{
if ($2... (1 Reply)
Discussion started by: phpsnook
1 Replies
5. UNIX for Dummies Questions & Answers
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)
Discussion started by: tp2115
0 Replies
6. Shell Programming and Scripting
Hi,
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... (1 Reply)
Discussion started by: bobbygsk
1 Replies
7. Shell Programming and Scripting
Hi ,
I have a jil file which i am trying to parse and print the job name and the condition corresponding to it.
Below is the input file
/* -------------------- testjob1 -------------------- */
insert_job: testjob1 job_type: c
machine: unix
owner: chidori
condition: s(joba) and... (9 Replies)
Discussion started by: chidori
9 Replies
8. Shell Programming and Scripting
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
9. UNIX for Beginners Questions & Answers
I am new to autosys. I want to add a global variable to a jil file named PJ.jil.
I also want to add a watch_file command to filename PJ.jil and AY.jil. The watch_file command checks every five minutes if the jobs have completed. For example. AY.jil needs to wait until all the jobs in PJ.jil have... (0 Replies)
Discussion started by: dellanicholson
0 Replies
10. UNIX for Beginners Questions & Answers
I have created two jil files name AY.jil and PY.jil. I have three issues which are as follows:
1. how do you add a global variable value from a shell script program to a jil
file?
2. PY.jil needs to check every five minutes on the completion of the AY.jil
jobs and AY.jil needs to... (1 Reply)
Discussion started by: dellanicholson
1 Replies
LEARN ABOUT MOJAVE
getpgid
GETPGRP(2) BSD System Calls Manual GETPGRP(2)
NAME
getpgid, getpgrp -- get process group
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <unistd.h>
pid_t
getpgid(pid_t pid);
pid_t
getpgrp(void);
DESCRIPTION
The process group of the current process is returned by getpgrp(). The process group of the process identified by pid is returned by
getpgid(). If pid is zero, getpgid() returns the process group of the current process.
Process groups are used for distribution of signals, and by terminals to arbitrate requests for their input: processes that have the same
process group as the terminal are foreground and may read, while others will block with a signal if they attempt to read.
This call is thus used by programs such as csh(1) to create process groups in implementing job control. The tcgetpgrp() and tcsetpgrp()
calls are used to get/set the process group of the control terminal.
RETURN VALUES
The getpgrp() call always succeeds. Upon successful completion, the getpgid() call returns the process group of the specified process; oth-
erwise, it returns a value of -1 and sets errno to indicate the error.
ERRORS
getpgid() will succeed unless:
[ESRCH] There is no process whose process ID equals pid.
SEE ALSO
getsid(2), setpgid(2), termios(4)
HISTORY
The getpgrp() function call appeared in 4.0BSD. The getpgid() function call is derived from its usage in System V Release 4.
STANDARDS
The getpgrp() function call is expected to conform to ISO/IEC 9945-1:1990 (``POSIX.1'').
COMPATIBILITY
This version of getpgrp() differs from past Berkeley versions by not taking a pid_t pid argument. This incompatibility is required by
ISO/IEC 9945-1:1990 (``POSIX.1'').
From the ISO/IEC 9945-1:1990 (``POSIX.1'') Rationale:
4.3BSD provides a getpgrp() function that returns the process group ID for a specified process. Although this function is used to support
job control, all known job-control shells always specify the calling process with this function. Thus, the simpler AT&T System V UNIX
getpgrp() suffices, and the added complexity of the 4.3BSD getpgrp() has been omitted from POSIX.1. The old functionality is available from
the getpgid() function.
BSD
June 4, 1993 BSD