my $output = $srootpath."sysoutput.txt"; my $cmd = $impKorr." -cfgfile ".$cfgfile." -dbuser ".$USER." -dbpassword ".$PWD; $rc = system($cmd." >".$output);