Sal,

One small correction:
 rc=popen('df', list.);
-do i=1 to list.i
+do i=1 to list.0
   say list.i


And one question.  The distribution of Regina I have doesn't document
"popen" at all.  Do you know where I can find a source that does?

Mark Post

-----Original Message-----
From: Sal Torres/SBC Inc. [mailto:cmcgst@;a05jes.ameritech.com]
Sent: Thursday, November 14, 2002 11:21 AM
To: [EMAIL PROTECTED]
Subject: regina/rexx question


*** Reply to note of Thu, 14 Nov 2002 11:11:24 -0500 (EST/CDT)
*** by [EMAIL PROTECTED]

Mark,

using popen:

 rc=popen('df', list.);
 do i=1 to list.i
   say list.i
   end

or using the stack:

  q=queued()
 'df  >FIFO'
  do i=1 to queued()-q;
    parse pull line
    say line
    end

[EMAIL PROTECTED] writes:
>I am working on rexx/regina.  I want to issue a command, such as 'df'  and
>then pull the results and massage them.
>
>'df'
>do queued()
>   pull line
>   /* edit the line */
>   say line
>end
>
>df results are not put in the stack to be pulled off in this manner.   How
>can I accomplish this?
>
>
>Mark D Pace
>Senior Systems Engineer
>Mainline Information Systems
>1700 Summit Lake Drive
>Tallahassee, FL. 32317
>[EMAIL PROTECTED]
>Office: 850.219.5184
>Fax: 850.219.5050
>http://www.mainline.com

Reply via email to