in reply to Re: Prepending a string to STDERR output, and logging STDOUT & STDERR synchronously to a file
in thread Prepending a string to STDERR output, and logging STDOUT & STDERR synchronously to a file

Ikegami:

We don't appear to have the IPC::Run module on our system, and if I can do this with open3, that's the way I'd like to go, because I see lots of "Use"s in the source for IPC::Run that I bet we also don't have.

Thanks for your response.

  • Comment on Re^2: Prepending a string to STDERR output, and logging STDOUT & STDERR synchronously to a file

Replies are listed 'Best First'.
Re^3: Prepending a string to STDERR output, and logging STDOUT & STDERR synchronously to a file
by ikegami (Patriarch) on Apr 18, 2006 at 19:08 UTC
    I see lots of "Use"s in the source for IPC::Run that I bet we also don't have.

    Doubtful.
    CarpCore.
    ExporterCore.
    FcntlCore.
    File::BasenameCore.
    File::SpecCore.
    IO::HandleCore.
    IO::FileCore.
    IO::PtyConditionally required. If you need it for IPC::Run, you also need it for IPC::Open3.
    IO::TtyConditionally required. If you need it for IPC::Run, you also need it for IPC::Open3.
    IPC::Run::DebugComes with IPC::Run.
    IPC::Run::IOComes with IPC::Run.
    IPC::Run::TimerComes with IPC::Run.
    IPC::Run::Win32HelperComes with IPC::Run.
    IPC::Run::Win32IOComes with IPC::Run.
    IPC::Run::Win32PumpComes with IPC::Run.
    POSIXCore.
    strictCore.
    SocketCore.
    SymbolCore.
    UNIVERSALCore.
    varsCore.

    Not all of these are necessarily required or loaded.

    Feel free to write your own solution with IPC::Open3.