11-27-2012
Is it on windows or linux/solaris machine?
For each run of autosys, you will be having a unique run id. Check with autosys team in your firm. Ask them to check the logs for that job. (at particular time)
Autosys job should wait for the script completion. ( wait for the exit code from the script )
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. Programming
Hi,
I am calling a program that greps and returns 72536 bytes of data on STDOUT, say about 7000 lines of data on STDOUT.
I use pipe from the program am calling the above program. Naturally, I execute the above program (through execl() ) throught the child process and try to read the... (4 Replies)
Discussion started by: vvaidyan
4 Replies
3. Shell Programming and Scripting
Hi,
i have an autosys job 'AUTJOBA' that calls a script script1.sh
Now, inside the script i would like to know the autosys job that kicked off this script.
When AUTJOBA runs script1.sh, will it set an environmental variable for this shell session that can be accessed within this script?
... (1 Reply)
Discussion started by: ysrinu
1 Replies
4. Solaris
Received the Timed out message consistently when I tried to jumpstart an M5000 with:
boot jsnet:speed=1000,duplex=full - install
Made the error go away by adding link-clock parameter:
boot jsnet:speed=1000,duplex=full,link-clock=master - install
"link-clock=master" disables... (1 Reply)
Discussion started by: markoakley
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
There are 2000 jobs in the list and i need to draw their status. I put all the jobs in the list and trying to read one by one from the list and to find out the status.
Help me out in correcting the script.
#!/bin/csh
for a in $(cat Jobs_List.txt);
do
source <<path>>
autorep -j $a... (1 Reply)
Discussion started by: venkatesht
1 Replies
6. Shell Programming and Scripting
:wall:Hi All,
I want to build script to force start the list of child jobs under a box. I prepared this below script, but this script need to some bug fix at run time. Please help me to to develop this script. Please let me know if any thing require for this script. Advance thank for all..
... (3 Replies)
Discussion started by: pradipta_pks
3 Replies
7. Shell Programming and Scripting
Hi,
I need to initiate a process script which will start and do some processing and then shuts down. Then i need to other verifications. But the the process takes around 25 to 3o minutes.
One thing i can monitor the nohup.out file for this process where i can wait for shutting down statement to... (3 Replies)
Discussion started by: Prashanth19
3 Replies
8. UNIX for Dummies Questions & Answers
I've K shell script. It will transfer the files from one server to other server using 'SCP' command. While running the script alone as a command line in UNIX ssh terminal its running with out asking password and files are transferred with out asking for password. But by running the script using... (6 Replies)
Discussion started by: maheshbabu
6 Replies
9. UNIX for Beginners Questions & Answers
Guyz,
Please let me know about script which is to be sending an automatic email to particular mail id's when a monotoring job get complete with status successful. (1 Reply)
Discussion started by: Rehan Ahmad
1 Replies
10. Shell Programming and Scripting
Here is my test code
process = sp.Popen( + ,
bufsize=1,
universal_newlines=True,
stdout=sp.PIPE, stderr=sp.STDOUT,
cwd=src_home)
output, _ =... (2 Replies)
Discussion started by: ezee
2 Replies
LEARN ABOUT DEBIAN
ns_job
ns_job(3aolserver) AOLserver Built-In Commands ns_job(3aolserver)
__________________________________________________________________________________________________________________________________________________
NAME
ns_job - commands
SYNOPSIS
ns_job option ?arg arg ...?
ns_job create ?-desc description? queueId ?maxthreads?
ns_job queue ?-detached? queueId script
ns_job wait ?-timeout seconds:microseconds? queueId jobId
ns_job waitany ?-timeout seconds:microseconds? queueId
ns_job cancel queueId jobId
ns_job delete queueId
ns_job jobs queueId
ns_job queues
ns_job threadlist
ns_job queuelist
ns_job joblist
ns_job genid
_________________________________________________________________
DESCRIPTION
ns_job manages a thread pool and a set of named "queues". Queues have a max number of threads and when the current number of running thread
reaches "max" then jobs are queued.
New threads are created when there are less than maxthread number of idle threads.
OPTIONS
create
create ?-desc description? queueId ?maxthreads?
Create a new job queue called queueId. If maxthreads is not specified, then the default of 4 is used.
queue
queue ?-detached? queueId script
Add a new job to the queue. If there are less than maxthreads current running then the job will be started. If there are maxthreads
currently running then this new job will be queued.
If detached is true, then the job will be cleaned up when it completes; no wait will be necessary.
The new job's ID is returned.
wait
wait ?-timeout seconds:microseconds? queueId jobId
Wait for the specified queued or running job to finish. wait returns the results of the script.
An error is thrown if the specified timeout period is reached.
waitany
waitany ?-timeout seconds:microseconds? queueId
Wait for any job on the queue complete.
An error is thrown if the specified timeout period is reached.
cancel
cancel queueId jobId
Remove the specified job from the queue. If the job is currently running, then the job will be removed from the queue when it com-
pletes.
1 (true) is returned if the job is currently running and can not be cancelled.
delete
delete queueId
Request that the specified queue be deleted. The queue will only be deleted when all jobs are removed.
jobs
jobs queueId
Return a list of the job IDs.
queues
Returns a list of the queues IDs.
threadlist
Returns a list of the thread pool's fields.
maxthreads
Max number of threads for all the queues in the thread pool.
numthreads
Number of allocated threads.
numidle
Number of currently idle threads.
req
stop
The thread pools is being stopped. This probably means that the server is shutting down.
queuelist
Returns a list of the queues. A queue has the following fields:
name
Name of the queue.
desc
Description of the queue.
maxthreads
Max number of threads to run for this queue.
numrunning
Number of currently running jobs in this queue.
REQ
delete
Someone requested this queue be deleted. Queue will not be deleted until all the jobs on the queue are removed.
joblist
Returns a list the jobs in the specified queue. A job has the following fields:
id
Job's ID
state
scheduled
The job is schedule to run.
running
The job is currently running.
done
The job is has completed.
results
If the job has completed, then this field will contain the results. If the job is running or scheduled to run, then this will
contain the script.
code
When the job is done, this will contain the return code.
Codes
TCL_OK
TCL_ERROR
TCL_RETURN
TCL_BREAK
TCL_CONTINUE
TYPE
nondetached
detached
REQ
none
wait
cancel
genid
Generate a new unique ID. This new ID can be used as the queue ID without conflicting with any other queue ID.
BUGS
SEE ALSO
nsd(1), info(n)
KEYWORDS
ns_job
AOLserver 4.0 ns_job(3aolserver)