8 Einträge, 1 Seite |
1
2
root 806 0.0 0.1 2324 1100 pts/2 S 14:49 0:00 sh -c /usr/bin/unace2 x '/data/A156/entpackt/skypdfpro_mf-installer-133-en-20050630.zip-ent/setup.exe-ent/setup.exe' &> /dev/null
root 807 103 0.0 4892 248 pts/2 S 14:49 0:09 /usr/bin/unace2 x /data/A156/entpackt/skypdfpro_mf-installer-133-en-20050630.zip-ent/setup.exe-ent/setup.exe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Funktion zum starten eines Entpacker Programms
sub start_prog
{
my $prog = $_[0];
my $text = '';
my @return;
$pid = open(FH,"$prog |") or die $!;
while (<FH>)
{
$text .= $_;
}
close (FH);
$pid = 0;
$return[0] = $?;
$return[1] = $text;
return @return;
}
system("/bin/unace2", "-x", "file1.ace");
system("/bin/unace2", "-x", "file1.ace");
my $rc = system(split(/\s+/, $prog));
my $rc = system(split(/\s+/, $prog, 2));
1
2
3
4
5
6
7
my $pid = fork;
if ($pid == 0) {
exec $prog, "bla", foo";
die $!;
}
# ... irgendwann
kill 9 => $pid;
8 Einträge, 1 Seite |