• MorphOS Developer
    Piru
    Posts: 608 from 2003/2/24
    From: finland, the l...
    Quote:

    EVX wrote:
    I am having a bit of rookie trouble getting the shell output to a file.

    What I see in the documentation is:

    command > file /A

    This only generates an empty file. I have tried creating the file first. I have tried >> to append the file.

    In my instance, I want to direct the output of the command "chelp all" to a file so I can print it.

    Please let me know what I am missing.


    Likely this command is printing the output to standard error. You can redirect standard error to file with:

    Code:
    command *>file


    You can also send both standard output and standard error to same file by using *>< for example:
    Code:
    command >file *><
  • »31.01.26 - 18:07
    Profile