in reply to Diff Result Mail Output

Obviously you've gone to some effort, so full marks for supplying the source. Regrettably, it's rather unreadable without <code> tags.

It looks like you're using a backtick to grab some output, and mailing that. But you're not checking to see whether the command was successful or not.

Taking a wild stab in the dark, I would say that the command cleartool is not in the PATH, and you're failing to check what happens when you try to call it. Try amending your script as follows:

@cmdOut = `$cmd`; # add this: if ($?) { die "argh: bad things happened: $?"; }

At least that way if you'll know if the backticked command managed to run correctly. Get back to us when you've done that.

• another intruder with the mooring in the heart of the Perl

Replies are listed 'Best First'.
Re^2: Diff Result Mail Output
by uriashea (Initiate) on Mar 27, 2007 at 18:17 UTC
    grinder, Thanks for your response! Turns out the issue was two-fold; (1) the command was dying, because (2) I was missing a ccperl variable. Cheers, uriashea