in reply to capturing output fails under CGI

Your CGI does not appear to be running as the same user as what your command line is using. Check your permissions on /tmp/blaaaargh, as the error suggests.

Update: Your executable is sending stuff directly to stderr, which the error_log is capturing, but your IO::CaptureOutput object is not. My guess is that either IO::CO does not capture stderr, or you need to provide a flag to have it capture stderr.

--MidLifeXis

Replies are listed 'Best First'.
Re^2: capturing output fails under CGI
by Fletch (Bishop) on Nov 05, 2008 at 16:14 UTC

    Or you need to explicitly tell the shell to redirect it to either a file (qx{zorble 2>/tmp/my_error.$$}) or to STDOUT (qx{blonk 2>&1}).

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.