Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Script to create log file
Name: satimis Date: January 11, 2006 at 06:55:27 Pacific OS: Gentoo 1.4 CPU/Ram: PII-350/256MB
Comment:
Hi folks,
I need each command line typed on Console/Xterm window to be automatically copied to a file after hitting [ENTER] and the last "ten/x" lines of each corresponding output on the screen to be recorded on the file simultaneously. There are >300 comand lines to be executed. I'm building LFS-LinuxFromScratch. I only need the last "x" lines of the output on the screen to be recorded because on compilation maybe there are >10 pages of output. It serves as a log file.
I don't expect adding >file/>>file to the end of each command lines typed, if possible.
Please advise whether it is possible to run a shell script so that my requirement can be done. If YES, please advise how to prepare this shell script.
Is there another alternative to do it instead of running a shell script.
Summary: I am not sure what you mean by GIGO? I want to apply this script to all *.log files in c:\data directory. I will schedule it to run every 15 minutes. Thank you, Leto the just...
Summary: I am trying to write a batch file that appends to a secondary log file from a log file that is being written by the system The system is generating a log.txt file situated at c:\temp\log.txt I want al...