The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ls command output in single line arsheshadri AIX 7 04-28-2008 11:50 AM
run command Unix on a single line Riddick61 UNIX for Dummies Questions & Answers 8 02-04-2008 10:19 AM
single line command roshanjain2 Shell Programming and Scripting 4 02-07-2007 01:33 AM
How to use more than one MPE command STREAM with Unix command in a single shell? bosskr Shell Programming and Scripting 0 09-19-2006 06:44 PM
Whats the Vhost Command for the Unix Shell shellnewbie Shell Programming and Scripting 4 07-10-2002 12:56 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-19-2006
Registered User
 

Join Date: Sep 2006
Posts: 2
Stumble this Post!
Question How to use more than one MPE command STREAM with Unix command in a single shell?

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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-16-2006
MrT MrT is offline
Registered User
 

Join Date: Oct 2006
Posts: 1
Stumble this Post!
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?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:56 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0