Gotta use:

   lines('/temp/cmd_out',"C")

on Linux to get the actual lines in a file, default is to indicate if 
there is at least 1 more line.

Ruurd

On 18-6-2015 16:16, Dave Jones wrote:
> Hi, René.
>
> If you can get the runREXX framework to work, could you share your
> experiences with the group. I'm trying to decide if this is a "big deal"
> or not.
>
>
> I'm going to use your suggestion on how to capture Linux command output;
> thanks for passing that on. I'm going to use simple Linux redirection to
> a file and then read the file back into the application, like so:
>
> Linux_cmd = 'cat .bashrc 1>> /tmp/cmd_out 2>> /tmp/cmd_out'
> do i = 1 to lines('/tmp/cmd_out')
>    say i linein('/tmp/cmd_out')
> end
> ......
>
> Have a good one, too.
>
> DJ
> On 06/17/2015 12:46 PM, René Jansen wrote:
>> Interesting and have it downloaded already.
>>
>> To capture output on Linux and other, I would normally rxqueue the command 
>> and loop through the queued lines.
>>
>>   “ls | rxqueue"
>>   line.0 = queued()
>>
>>   do l = 1 to line.0
>>     parse pull line.l
>>      say line.l
>>   end
>>
>> There might be more sophisticated ways.
>>
>> best regards,
>>
>> René.
>>
>>
>>> On 17 jun. 2015, at 19:16, Dave Jones <d...@vsoft-software.com> wrote:
>>>
>>> Hello, all.
>>>
>>> This just appeared on the IBM z/VM web download page:
>>>
>>> The runREXX Framework
>>> Overview
>>>
>>> Do you want to develop, test and run REXX programs with a few mouse
>>> clicks? Then the provided runREXX framework will do the trick for you.
>>>
>>> The framework allows to develop REXX programs intuitivly in an eclipse
>>> framework. This could be classic REXX but also ooREXX.
>>>
>>> runREXX is fully implemented in REXX by taking in account the context of
>>> the selected file to be processed.
>>>
>>> runREXX also contains a preprocessor to create reusable functions and
>>> allow selective unit testing of a part of a program or the program
>>> itself. Other built in features are provided such as to create source
>>> code documentation. For example it supports creating html from
>>> BookMaster tags (using the tool B2H).
>>>
>>> By using eclipse as the underlying framework it enriches runREXX with
>>> its capabilities dependend on which eclipse based distribution is used.
>>> One nice built-in feature of eclipse is the file compares and searches
>>> with refactoring support. The other is the use of source code library
>>> systems to manage eclipse project contents.
>>>
>>> You can locate the package here:
>>>
>>> http://www.vm.ibm.com/download/packages/descript.cgi?RUNREXX
>>>
>>> Note that the package requires ooRexx on the workstation.
>>>
>>> On an unrelated matter, what is the canonical method in ooRexx running
>>> on Linux for issuing a Linux command and capturing the command's normal
>>> STDOUT output and STDERR, too?
>>> -- 
>>> Dave Jones
>>> www.vsoft-software.com
>>> Houston, TX
>>> 281.578.7544
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Oorexx-devel mailing list
>>> Oorexx-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Oorexx-devel mailing list
>> Oorexx-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>>


-- 
Ruurd Idenburg


------------------------------------------------------------------------------
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to