Hi all,
I am running a job .. and i want to know the status tht it is runnig or not ..
and how can i find the jobId of my job ..
I have to get it to kill my running job
Pls let me know da Unix commands to do it ..
i m wrking on Hp UNIX (1 Reply)
Hi,
I have a requirement.
Scenario:
A parent job invokes a child job and gets killed. The child becomes orphan and gets attached to init. Child job is removed from the pid table as soon as it gets completed.
Requirement is i need the status of the child job even after the parent job is... (7 Replies)
Dear All,
I want to write a shell script to test the server is running or not. The method is pinging the server and examine the status code.
the script:
#/bin/tcsh
ping -c 3 host
if ($? != 0) then
actionA
endif
This script work fine in terminal. The status code is 0 when the... (1 Reply)
I have one unix job which can be executed using following commands:
csh
setenv HOME /data/ftpqa/ARTQ/orascripts
sudo -u artq /apps/ralocal/bin/runscript artq ../out/art_neg_item_cost_update.csh
I want to create one more script, which checks whether art_neg_item_cost_update.csh is already... (1 Reply)
Hello,
I am running a shell script whose execution often takes several hours to complete. Is there way I can get some kind of status update as the job is running? Something as simple as the start and the current time stamp.
Thanks,
Gussi (2 Replies)
We are using autosys for job scheduling.
How to find successful job status completion in Autosys, programatically. Based on the successful job completion , mail has to be trigeered to Business users. Please help
Thanks (0 Replies)
Hi,
I have master job which will run based on the sub jobs status.
In the master job I am giving the condition like,
condition: s(sub_job) f(sub_job)
This scenario will work if the sub job status is success or failed. but I want to run my master job even if the sub_job was... (1 Reply)
I have written a BASH script to autmatically start several jobs. I want to add additional function to the script so it would check these jobs from time to time (the jobs could take as short as 2 hours or as long as 1 day to finish). If a job is done, check the log file and output the error into a... (3 Replies)
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)
Hello everyone
While working on TUI for scripts, there there came the idea to' add a command' for dd too.
That was, after 'wrapping' tar and wget either, to display their growing size and return the exit code with a textual-visual-feedback to the user.
Now displaying the filesize of a... (13 Replies)
Discussion started by: sea
13 Replies
LEARN ABOUT ULTRIX
lpq
lpq(1) General Commands Manual lpq(1)Name
lpq - spool queue examination program
Syntax
lpq [ options ] [ job #... ] [ user... ]
Description
The command examines the spooling area used by for printing files on the printer, and reports the status of jobs. The command invoked
without any arguments reports on any jobs currently in the default queue.
When jobs are being printed, reports the queue as being ``active''. For each job submitted, reports the user's name, current rank in the
queue, the names of files comprising the job, the job identifier and the total size in bytes. The job identifier is a number which may be
supplied to to remove a specific job.
Job ordering is determined by the FIFO (First In, First Out) algorithm used to scan the spooling directory. When the queue is empty,
reports that there are ``no entries''.
File names may be unavailable for some jobs, for example, if the command is used without specifying a file name, or if is used in a pipe
line. If file names are unavailable, the file name reported by is ``standard input''.
Arguments
job #... Causes to report on only the job number(s) specified.
user... Causes to report on only the jobs for the specified user(s).
Options
+n Scan and display the spool queue until the queue is empty. The queue is scanned every n seconds, if no argument is specified the
queue is scanned every 30 seconds.
-l Display the status of each job on more than one line if necessary. If this option is not used, the status of each job is displayed on
one line.
-Pprinter
Report the status of the spool queue for the printer specified. If this option is not used, the spool queue displayed is the one
defined by the PRINTER environment variable. If a queue is not defined by the PRINTER environment variable, the spool queue displayed
is for the printer named ``lp'' in the file.
Restrictions
The displayed status of the spool queue may not always be the current status. This is because jobs may be completed after the queue has
been examined, but before the status has been displayed.
Error Messages
Two of the most common error messages from are:
Warning: no daemon present (R)
A daemon is not available for the specified printer. Refer to the command to find out how to restart the printer daemon.
unknown printer (R)
The printer specified as an argument to the -P option, doesn't have an entry in the file.
Files
For manipulating the screen for repeated display
To determine printer characteristics
The spooling directory, as determined from printcap
Control files specifying jobs
The lock file to obtain the currently active job
See Alsolpr(1), lprm(1), lpc(8), lpd(8)lpq(1)