Yokemate of Keyboards
Posts: 2193 from 2003/2/24
From: po-RNO
More about this...
Chelp is a shell ("AmigaDOS") script that has the Script protection bit set and it can be launched just like a command. It's only a helper script that actually calls LuaX and the main Lua script.
I'm not sure if you can redirect a shell script output to a file at all... anyone remembers or has any tips?
Basically if you launch a shell script with the Execute command, only Execute's own output (errors mainly) will be redirected to a file, but it seems that nothing that the given script does is redirected. It usually calls external programs that might output something, but it isn't catched with a rediretion of the main Execute command.
In this particular case you could redirect output of the Lua script if you launch it by LuaX yourself, skipping the shell script completely...
BTW. if you want to read loong outputs in the shell window, you can pause the output by pressing some key that enters a character into the shell, and continue by erasing the character then. I usually press the space bar for that, and continue with the backspace. But of course MorphOS has the scrollback buffer also, so it's not that important trick as it used to be on Amiga :)
And you can also save the shell output to a file from the Review menu in the Shell window if you can't use redirection for some reason.