2 |
## $Id$ |
## $Id$ |
3 |
## --------------------------------------------------------------------------- |
## --------------------------------------------------------------------------- |
4 |
## $Log$ |
## $Log$ |
5 |
|
## Revision 1.3 2003/02/14 14:17:04 joko |
6 |
|
## - shortened seperator |
7 |
|
## |
8 |
|
## Revision 1.2 2003/02/11 05:14:28 joko |
9 |
|
## + refactored code from libp.pm |
10 |
|
## |
11 |
## Revision 1.1 2003/02/09 04:49:45 joko |
## Revision 1.1 2003/02/09 04:49:45 joko |
12 |
## + shortcuts now refactored to this file |
## + shortcuts now refactored to this file |
13 |
## |
## |
26 |
now today |
now today |
27 |
run_cmd run_cmds |
run_cmd run_cmds |
28 |
get_chomped |
get_chomped |
29 |
|
bool2status |
30 |
); |
); |
31 |
|
|
32 |
|
|
54 |
my $cmd = shift; |
my $cmd = shift; |
55 |
my $caption = shift; |
my $caption = shift; |
56 |
#$cmd = 'perl ' . $cmd; |
#$cmd = 'perl ' . $cmd; |
57 |
my $sep = "-" x 90; |
my $sep = "-" x 60; |
58 |
print $sep, "\n"; |
print $sep, "\n"; |
59 |
print " ", $cmd, "\n"; |
print " ", $cmd, "\n"; |
60 |
print " ", $caption, "\n" if $caption; |
print " ", $caption, "\n" if $caption; |
76 |
return $str; |
return $str; |
77 |
} |
} |
78 |
|
|
79 |
|
sub bool2status { |
80 |
|
my $bool = shift; |
81 |
|
return ($bool ? 'ok' : 'failed'); |
82 |
|
} |
83 |
|
|
84 |
1; |
1; |