|go ahead... be a heretic|
Terminal Display - Log File Creationby k_manimuthu (Monk)
|on Sep 02, 2010 at 10:09 UTC||Need Help??|
k_manimuthu has asked for the
wisdom of the Perl Monks concerning the following question:
I have two programs. The first program creates a log file, same as display of the terminal. So I am using the below code in unix terminal, for get the log file creation. And itís working fine.
At the end of the program I call the second program (`perl second.pl $LOGFILE`) and I wish to get the user entered inputs only in $LOGFILE. ( No need to captured the terminal display). I am using the LOG file handler to append the user entered inputs. But I am getting the terminal display also. How to avid the terminal display in the log file.
I got the solution. Below I place the sample code for that one.
The first file : I wish to captured the screen display in log file
The second file : I wish to user entered inputs only in the log file