Help for this page

Select Code to Download


  1. or download this
    open TEMP,"cleartool checkout -nc $element_pathname 2>&1 |"
        or die "Failed to checkout: $!";
    # Read from TEMP as usual, but now we also have STDERR
    
  2. or download this
    use IPC::Open3;
    my $pid = open3 IGNORE,TEMPOUT,TEMPERR,
        'cleartool',"checkout -nc $element_pathname"
    ...
    }
    # Don't forget to reap it!
    waitpid $pid,0;