Thanks - I tried it after your prior note - works great.
                                                                       
 Lionel B. Dyck <><                                                    
 z/Linux Specialist                                                    
 IBM Corporation                                                       
 Global Technology Services - Kaiser Account                           
 Work: 925-926-5332                                                    
 Cell: 925-348-0237                                                    
 E-Mail: [email protected]                                              
 AIM: lbdyck | Yahoo IM: lbdyck | GTalk:                               
 lbdyck                                                                
                                                                       






From:   Scott Rohling <[email protected]>
To:     [email protected]
Date:   03/08/2010 09:59 AM
Subject:        Re: Capturing Command output in REXX ?
Sent by:        Linux on 390 Port <[email protected]>



Yep - just tried it myself..   So - to put it into an array:

'df -h | rxqueue'
out. = ''
out.0 = queued()
Do i = 1 to out.0
  Parse Pull out.i
End

Scott

On Mon, Mar 8, 2010 at 10:52 AM, Scott Rohling
<[email protected]>wrote:

> Can't you:    'df -h | rxqueue'  to use the stack?   I thought I recalled
> doing things this way with Regina...
>
> Scott
>
>
> On Mon, Mar 8, 2010 at 10:47 AM, Lionel Dyck <[email protected]> wrote:
>
>> In TSO Rexx I can use the OUTTRAP command and in CMS I can use a PIPE to
>> issue a command and put the output into a stem to work with.
>>
>> How can I do that in REXX in Linux?
>>
>> For example I want to capture the output of the "df -h" command and the
>> only way I can do that now that I've figured out is to do something like
>> this:
>>
>>   'df -h > /tmp/tmp.file'
>>   call read '/tmp/tmp.file'  /* a read subroutine that reads the file
into
>>   a stem
>>   'rm /tmp/tmp.file'
>>
>>   .... process the stem
>>
>> I'm using Regina REXX on SLES 10 SP2.
>>
>> Thanks
>>
>>
>>  Lionel B. Dyck <><
>>  z/Linux Specialist
>>  IBM Corporation
>>  Global Technology Services - Kaiser Account
>>  Work: 925-926-5332
>>  Cell: 925-348-0237
>>  E-Mail: [email protected]
>>  AIM: lbdyck | Yahoo IM: lbdyck | GTalk:
>>  lbdyck
>>
>>
>>
>> ----------------------------------------------------------------------
>> For LINUX-390 subscribe / signoff / archive access instructions,
>> send email to [email protected] with the message: INFO LINUX-390 or
>> visit
>> http://www.marist.edu/htbin/wlvindex?LINUX-390
>>
>
>

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

<<inline: graycol.gif>>

Reply via email to