Log stderr to stdout in run script

This commit is contained in:
Daniel Berteaud 2012-10-18 22:17:45 +02:00
parent 94adfb8d89
commit 585d7d027c
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ my $dbuser = $rec->prop('DbUser') || 'samba';
my $dbpass = $rec->prop('DbPassword') || 'samba';
my $dbhost = $rec->prop('DbHost') || 'localhost';
open(STDERR, ">&STDOUT");
my @args = ("--debug=1", "--dbname=$dbname", "--dbuser=$dbuser", "--dbpass=$dbpass");
push @args, "--dbhost=$dbhost" if ($dbhost ne 'localhost');