Computing.Net > Forums > Programming > Script to create log file

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

Reply to Message Icon

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.

TIA

B.R.
satimis



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Script to create log file

Create log file www.computing.net/answers/programming/create-log-file-/15402.html

Log file parsing www.computing.net/answers/programming/log-file-parsing/16177.html

append log file to secondary log file www.computing.net/answers/programming/append-log-file-to-secondary-log-file/19653.html