14 lines
551 B
Rexx
14 lines
551 B
Rexx
/* REXX ---------------------------------------------------------------
|
|
* 07.07.2014 Walter Pachl
|
|
* enter the appropriate command shown in a command prompt.
|
|
* "rexx serr.rex 2>err.txt"
|
|
* or "regina serr.rex 2>err.txt"
|
|
* 2>file will redirect the stderr stream to the specified file.
|
|
* I don't know any other way to catch this stream
|
|
*--------------------------------------------------------------------*/
|
|
Parse Version v
|
|
Say v
|
|
Call lineout 'stderr','Good bye, world!'
|
|
Call lineout ,'Hello, world!'
|
|
Say 'and this is the error output:'
|
|
'type err.txt'
|