10-16-2006
Quote:
Originally Posted by bosskr
Hello,
I have problem in writing the shell script involving MPE command STREAM related to HP-UX and Unix command. Script is
sh "nlshCMD 'STREAM <job name1>' | 'SHOWJOB' | grep $HPJOBNUM"
sh "nlshCMD 'STREAM <job name2>' | 'SHOWJOB' | grep $HPJOBNUM"
sh "nlshCMD 'STREAM <job name3>' | 'SHOWJOB' | grep $HPJOBNUM"
My question is I have to put these three STREAM commands together involving three diffrent jobs together in a single shell script and to monitor the corresponding job, once I submit it. For your reference Text in upper case represents MPE command of HP9000.
Can we do it? If so How? Please let me know your view and any reference in solving this.
Thanking in advance
Hi bosskr,
What exactly are you trying to accomplish?
Are you just trying to get the job number from the streamed job?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have problem in writing the shell script involving MPE command STREAM related to HP-UX and Unix command. Script is
sh "nlshCMD 'STREAM <job name1>' | 'SHOWJOB' | grep $HPJOBNUM"
sh "nlshCMD 'STREAM <job name2>' | 'SHOWJOB' | grep $HPJOBNUM"
sh "nlshCMD 'STREAM <job name3>' |... (0 Replies)
Discussion started by: bosskr
0 Replies
2. UNIX for Dummies Questions & Answers
Hi everybody..
I need to enter in bash mode and then run a command and this just in a single command line.
I tried : "bash ^M| somecommand" but nothing..
How do I do to simulate the return button just right after the bash command ?
Thanks.. (8 Replies)
Discussion started by: Riddick61
8 Replies
3. Shell Programming and Scripting
Hi.
please help me to write the following query in a shell script.
the Query is :select no,salary from emp_info where name='$var_name'
the following is my code.
#! /bin/sh
var_name=$1
sqlplus -s user/pwd@DB << EOF
select no,salary from emp_info where name="'$var_name'";... (4 Replies)
Discussion started by: little_wonder
4 Replies
4. Shell Programming and Scripting
Dear All,
Please help !
i ham having 300 file with E.G. PMC1_4567.arc in seq. like PMC1_4568.arc,PMC1_4569.arc ...n and so on.. i want all those file to be rename like PMC_4567.arc ,PMC_4568.arc .. mean i want to remove 1 from first file name ..
pls help.. (6 Replies)
Discussion started by: moon_22
6 Replies
5. UNIX for Advanced & Expert Users
Hello,
I'm looking for some code that will list sequences of files as a single line.
ie, sequences of files like this:
filename.1.ext
filename.2.ext
filename.3.ext
filename.4.ext
filename.5.ext
filename.6.ext
filename.7.ext
filename.8.ext
filename.9.ext
filename.10.ext
would... (6 Replies)
Discussion started by: kentm
6 Replies
6. UNIX for Dummies Questions & Answers
Hi ,
Can You Please let Know How use unix uniq command on a single column for deleting records from file
with Below Structure.Pipe Delimter File .
Source
Name | Account_Id
A | 101
B... (2 Replies)
Discussion started by: anudeepkumar123
2 Replies
7. Shell Programming and Scripting
I have a tar file that contains multiple .Z files. Hence I need to issue a tar command followed by a gzip command to fully extract the files. How do I do it in a single command?
What I'm doing now is
tar xvf a.tar (this will output 1.Z and 2.Z)
gzip -d *.Z (to extract 1.Z and 2.Z) (9 Replies)
Discussion started by: ericlim
9 Replies
8. UNIX for Dummies Questions & Answers
Hello everyone,
I am new to Unix and I am stuck with a problem. I need only a single command to display the output of who and then add the total number of users and display at the bottom of that output.
Example-: (Expected output)
sreyan@debian:~$ <command>
sreyan tty7 ... (7 Replies)
Discussion started by: sreyan32
7 Replies
9. Shell Programming and Scripting
i have a file something like this :
start:
01:00:00
01:30:00
02:30:00
05:30:00
end:
01:13:00
02:00:00
02:40:00
05:45:00
and i want (end - start) total run time in below format:
run:
00:13:00
00:30:00
00:10:00
00:15:00 (4 Replies)
Discussion started by: Acme
4 Replies
10. UNIX for Beginners Questions & Answers
Hi,
Can anyone help me for merge the following multi-line log which beginning with a " and line ending with ": into one line.
*****Original Log*****
087;2008-12-06;084403;"mc;;SYHLR6AP1D\LNZW;AD-703;1;12475;SYHLR6AP1B;1.1.1.1;0000000062;HGPDI:MSISDN=12345678,APNID=1,EQOSID=365;... (3 Replies)
Discussion started by: rajeshlinux2010
3 Replies
pbs(1B) PBS pbs(1B)
NAME
pbs - general information on pbs
DESCRIPTION
PBS stands for Portable Batch System. It is a networked subsystem for submitting, monitoring, and controlling a work load of batch jobs on
one or more systems. More information about PBS is available in the PBS Users Guide.
Batch means that the job will be scheduled for execution at a time chosen by the subsystem according to a defined policy and the availabil-
ity of resources. For a normal batch job, the standard output and standard error of the job will be returned to files available to the
user when the job is complete. This differs from an interactive session where commands are executed when entered via the terminal and
output is returned directly to the terminal. PBS also supports an interactive batch mode where the input and output is connected to the
user's terminal, but the scheduling of the job is still under control of the batch system.
A job is typically a shell script and a set of attributes which provide resource and control information about the job. A job does not
have to be submitted on the system where it will run, tt can be submitted on any system with the PBS commands and access to the execution
system, see qsub(1B). Output will be returned to the system from which the job was submitted unless directed otherwise.
Attributes offer control over when a job is eligible to be run, what happens to the output when it is completed and how the user is noti-
fied when it completes. The attributes of the job may be specified on the command line or in the job script when the job is submitted.
For information about job attributes, see qsub(1B) and pbs_job_attributes(7B).
One important attribute is the resource list. The list specifies the amount and type of resources needed by the job in order to execute.
The list also implies a hard upper limit on usage of those resources. When the limit is reached, the job is terminated. The types of
resources available to a job vary with the system architecture. For a list of resources supported on the default system, see
pbs_resources(7B). There are man pages for other systems types as well, see pbs_resources_aix4(7B), pbs_resources_fujitsu(7B),
pbs_resources_irix5(7B), pbs_resources_solaris5(7B), pbs_resources_sp2(7B), pbs_resources_sunos4(7B), or pbs_resources_unicos8(7B).
Once a job has been submitted, it may be monitored by use of the qstat(1B) command. Two forms of output are available with the qstat com-
mand. The default form is the short display. Information about a job is limited to a single line. Complete information about the job
or jobs is available through qstat with the -f option. Information will be given about all jobs in the system, all jobs in specified
queues, or only specified jobs.
When displaying status of jobs, you will see in which queue the job resides. In PBS a queue is just a collection point for jobs, it does
not imply any execution ordering. That ordering is determined by a scheduling policy implemented by the system administration.
Other commands of interest which have man pages of their own are:
qalter Alter a job's attributes.
qdel Delete a job.
qhold Place a hold on a job to keep it from being scheduled for running.
qmove Move a job to a different queue or server.
qmsg Append a message to the output of an executing job.
qrerun Terminate an executing job and return it to a queue.
qrls Remove a hold from a job.
qselect Obtain a list of jobs that met certain criteria.
qsig Send a signal to an executing job.
SEE ALSO
qalter(1B), qdel(1B), qhold(1B), qmove(1B), qmsg(1B), qrerun(1B), qrls(1B), qselect(1B), qsig(1B), qsub(1B) and the PBS User Guide. Start-
ing with qsub(1B), you can find all other available PBS man pages by following references in the "See Also" section.
Local pbs(1B)