print {$self->{mesgout}} "? $msg\n";
}
} elsif ($self->{action} eq "restore") {
- print STDOUT "$msg\n";
+ print STDERR "$msg\n";
} elsif ($self->{action} eq "validate") {
print STDERR "$msg\n";
} else {
$self->{action} = 'validate';
}
+ if ($action eq 'backup') {
+ $self->_set_mesgout();
+ }
+
# now convert it to a function name and see if it's
# defined
my $function_name = "command_$command";