Can you please try open(ORA, "| dgmgrl | tee dgmgrl.out" ) ? 2010/5/27 newbie01 perl <newbie01.p...@gmail.com>: > Hi all, > > Can someone please help and advise if it is possible to have the output of > the code below to the screen and at the same time to the file as well? > > open(ORA, "| dgmgrl > dgmgrl.out" ) or die "Can't pipe to dgmgrl: $!"; > print ORA "connect > sys/passw...@${connect_string_02}\n<sys/passw...@$%7bconnect_string_02%7d\n> > "; > print ORA "show configuration verbose\n"; > close ORA; > > At the moment it output to file which is okay ... but if possible I want it > to print out the output as well. > > Any help will be very much appreciated. >
-- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/