02-21-2003
Suppose that you save the code into code.txt you would do the following;
jil < code.txt
and if you wanted a log:
jil <code.txt >code.log
This has to be done from an autosys command line.
Once the code is in the autosys database, you can use autorep to check the status of a job or box. For example, to check the status of sample_ls you would type:
autorep -j sample_ls
And to view the underlying JIL code, you would type:
autorep -j sample_ls -q
There are numerous other options and you really should read an Autosys guide to get an uderstanding of the relationships between jobs and boxes, runstatus, etc.
As far as troubleshooting batch problems, autosys writes an autoremote log file, and that file is placed where you specify in your setup of autosys. For example, the file might be in the /tmp directory and called auto_rem.389743.93299.1
The file should always start with auto_rem and the numbers that follow will correspond to the job ID in the database.
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. Shell Programming and Scripting
post deleted ... (2 Replies)
Discussion started by: Data469
2 Replies
3. 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
4. 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
5. Shell Programming and Scripting
I need to list out all the AutoSys jobs that are referencing a particular AutoSys global variable.
I know the autorep command will definitely need to be used here, and maybe grep as well, but I can't figure out exactly how it's to be done. For example, "autorep -q -J %jobnamewildcard% | grep... (1 Reply)
Discussion started by: dazzwater
1 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 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
9. 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
10. Shell Programming and Scripting
Hi Gurus,
below list is autosys job output stats, it includes boxes, sub-boxes and detail jobs. detail jobs are most right indented ones in each box. the requests is to get all these detail jobs list.
the only way to identify the "detail job", is intend.
auto_job ... (2 Replies)
Discussion started by: green_k
2 Replies
qmsg(1B) PBS qmsg(1B)
NAME
qmsg - send message to pbs batch jobs
SYNOPSIS
qmsg [-E] [-O] message_string job_identifier ...
DESCRIPTION
To send a message to a job is to write a message string into one or more output files of the job. Typically this is done to leave an
informative message in the output of the job.
The qmsg command writes messages into the files of jobs by sending a Message Job batch request to the batch server that owns the job. The
qmsg command does not directly write the message into the files of the job.
OPTIONS
-E Specifies that the message is written to the standard error of each job.
-O Specifies that the message is written to the standard output of each job.
If neither the -E nor the -O option is specified, the message will be written to the standard error of the job.
OPERANDS
The first operand, message_string, is the message to be written. If the string contains blanks, the string must be quoted. If the final
character of the string is not a newline, a newline character will be added when written to the job's file.
All following operands are job_identifiers which specify the jobs to receive the message string. The qmsg command accepts one or more
job_identifier operands of the form:
sequence_number[.server_name][@server]
STANDARD ERROR
The qmsg command will write a diagnostic message to standard error for each error occurrence.
EXIT STATUS
Upon successful processing of all the operands presented to the qmsg command, the exit status will be a value of zero.
If the qmsg command fails to process any operand, the command exits with a value greater than zero.
SEE ALSO
qsub(1B), pbs_msgjob(3B)
Local qmsg(1B)