in reply to Re^2: How to print STDOUT to a file
in thread How to print STDOUT to a file

Could you show us the exact system command you are using so that we can identify the mistake exactly.

Prasad

Replies are listed 'Best First'.
Re^4: How to print STDOUT to a file
by Anonymous Monk on Nov 14, 2005 at 12:09 UTC
    system($rnapath, "-p", "-noCloseGU", "-noLP", "$_") == 0 or die $?;
    $rnapath being the program called. Thank you for your patience.
      the bullet proof way:
      my $pid = fork; if (defined $pid and $pid == 0) { open STDOUT, ">", $fn or die; exec $script, @args; exit 1; } if ($pid) { waitpid($pid); $? and die "error on child: $?" } else { die "unable to fork: $!"; }