• EVX
  • Caterpillar
    Caterpillar
    Posts: 30 from 2026/1/10
    jPV,

    Thank you very much for the explanation. It all makes sense now, but at the moment I tried the redirect, it was surely a mystery.

    This script impresses me for it's (usefulness &) ability to use a network connection. I'll get on with my shell learning for now and then have a look at this gem!

    Cheers,

    -E



    Quote:

    jPV wrote:
    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.

  • »04.02.26 - 04:17
    Profile