Peter Lemus wrote: > Hi, folks, > > I have a scripts that prints to a log file. I would > like to receive all messages on my terminal also when > the script runs. Please enlight me...thanks. > > The scripts looks something like this... > #MAIN > #----------------------------------------------- > open (STDOUT, ">> $LOGFILE"); > &getdate; > print "-----------START---------------------.\n"; > print "-----------START---------------------.\n"; > close(STDOUT);
once you redirect STDOUT, the stuff that you print won't appear to your terminal screen. use print STDERR along your print statment to print both to screen and log file. Or just don't use STDOUT, open a different file handle for the log file. david -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]