close STDOUT; close STDERR; open ( FILE, ">>./testing.stdout" ) or die "$!\n\n"; print FILE "this\n"; system('ls') == 0 or print FILE "oops $!\n"; print "that\n"; #### this DBVARS.main getServername.pl logs nssswitch.pl nssswitch.sh testing.stdout tryCloseSDTOUT.pl