Re: CMD printer output redirection
Posted: Tue Jul 14, 2015 1:01 am
@JosDuchIt
I don't know anything about Gui4CLI but I've ofter been frustrated by the fact that you can't redirect the output from an AmigaDOS script for debugging like you can from a command. You can redirect it to NIL: but not a file (e.g myscript >NIL: works).
It can be done in strange ways like:
echo >ram:file `myscript`
However, the linefeeds are stripped.
rx >ram:file "ADDRESS COMMAND execute myscript"
That works but I have to wonder why ARexx can redirect the output but a shell can't.
I don't know anything about Gui4CLI but I've ofter been frustrated by the fact that you can't redirect the output from an AmigaDOS script for debugging like you can from a command. You can redirect it to NIL: but not a file (e.g myscript >NIL: works).
It can be done in strange ways like:
echo >ram:file `myscript`
However, the linefeeds are stripped.
rx >ram:file "ADDRESS COMMAND execute myscript"
That works but I have to wonder why ARexx can redirect the output but a shell can't.