Skip to content

Issues with STDOUT/STDIO file output #11

@andyhenson

Description

@andyhenson

I had issues when using bash 4.4.20 (Alma Linux 8) that the STDOUT / STDIO redirections did not work.

The syntax used "exec 1> >(tee -a $OSHT_STDOUT)" seems odd and undocumented, which might be why it's not working.

I experimentally changed it to a much simpler "exec >>$OSHT_STDOUT; exec 2>>$OSHT_STDERR" which works fine, but only captures STDOUT and STDERR rather than also capturing STDIO.

I could add "cat $OSHT_STDOUT $OSHT_STDERR >$OSHT_STDIO" at the end of _osht_run() to get the STDIO back, but the order of the text would be changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions