Menu

#434 exec function ignores stderr

open
5
2006-04-25
2006-04-25
Nathan Bell
No

Currently the exec function will always fail if the
process writes to standard error. Since various
applications use stderr for debug output it would be
useful to retain this output without having to resort
to redirecting stderr to stdout. I've included a patch
that adds the "-ignorestderr" option to exec to
accomplish just this. Without the switch, exec runs as
normal, with the switch stderr will continue to be
written without stopping the command. The drawback to
this is that if "-ignorestderr" is used, and the
program fails, stderr is not appended to the result. It
is useful in some situations, but not others.

I've tested the patch only on linux. It should function
properly on windows, but will need testing. The patch
is against the most recent cvs checkout from sourceforge.

Discussion

  • Nathan Bell

    Nathan Bell - 2006-04-25

    Adds -ignorestderr to exec command

     
  • Donal K. Fellows

    • labels: 322376 --> 24. Channel Commands
    • assigned_to: dkf --> andreas_kupries
     
  • Arun

    Arun - 2006-08-30

    Logged In: YES
    user_id=1587423

    ta