Wednesday, 15 August 2012

Clearcase error reports -



Clearcase error reports -

is there way mute or remove error messages clearcase command such mklabel? i'd suppress error messages mklabel command if possible.

the scripts see in this thread (or this one, or in one of 10 best scripts) employ same technique:

cleartool mklabel ... 2> /dev/null

in perl script instance:

my $cout = `cleartool desc $pn@@\/$lbtype 2>/dev/null` ;

this part of cleartool output redirection techniques.

i prefer redirecting stderr in file, can parse (after executing command) observe rare errors, while ignoring warning (like label existing , moved).

but main thought remains: cleartool mklabel, there no -silent or -quiet option.

clearcase

No comments:

Post a Comment