Thread STDOUT und ERROUT in Datei umleiten (22 answers)
Opened by Eng1958 at 2013-11-14 12:22

Gast wer
 2013-11-20 10:28
#172138 #172138
Code (perl): (dl )
1
2
3
4
5
6
7
8
my $logfile = "logfile.log";

open(my $logfh, ">", $logfile) or die "Konnte $logfile nicht öffnen ($!)";

close(STDOUT);
close(STDERR);
*STDOUT=$logfh;
*STDERR=$logfh;

Last edited: 2013-11-20 10:49:25 +0100 (CET)

View full thread STDOUT und ERROUT in Datei umleiten