-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathfase10.pl
45 lines (36 loc) · 1.06 KB
/
fase10.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/perl -w
use lib 'libs';
use Msg;
use open qw(:std :utf8);
use Encode qw(decode_utf8);
cambia_idioma($idioma_solicitado);
no warnings;
# ----------------------------------------------------------------------------------------
# Fase 10.0 -- Servicios
# ----------------------------------------------------------------------------------------
print "-" x 100;
print $Msg::msg[$Msg::idioma][100];
print F $Msg::msg[$Msg::idioma][101];
print F "<div>\n";
print F "<div class=\"content\">\n";
print R $Msg::msg[$Msg::idioma][101];
print R "<div>\n";
print R "<div class=\"content\">\n";
print "-" x 100;
$SERVICIOSCHECK=`/sbin/chkconfig --list > /tmp/servicios_check.txt`;
# Leer un fichero de texto
my $filename = '/tmp/servicios_check.txt';
open INFILE,$filename;
my $linea;
while ( $linea = <INFILE>) {
chomp($linea);
print "\n$linea\n";
print F "<p>$linea</p>\n";
}
close INFILE;
unlink '/tmp/servicios_check.txt';
print F "</div>\n";
print F "</div>\n";
print R $Msg::msg[$Msg::idioma][102];
print R "</div>\n";
print R "</div>\n";