Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script needed

Status
Not open for further replies.

todups

Technical User
Joined
Jul 17, 2001
Messages
42
Location
US
Hello Everybody,

Are there any scripts to format the output in /var/adm/messages or /var/log/syslog generated by syslog.conf by inetd deamon for incoming tcp connections.

Any hints of where to get some useful unix scrpts

Thanx in advance

Todups
 
I'm not sure what your initial question is, but I think you are asking how to get the TCP connections to log into one of the two files listed above.

If that is what you want, you simply append the last line in your /etc/init.d/inetsvc to look like this:

/usr/sbin/inetd -s -t
 
/usr/sbin/inetd -s -t logs the tcp connection to a log file .I want to format the log file using a script to produce a readable report.

Todup
 
so you basically want to cat the log file and use grep and/or awk to make it nice and neat?
 
Yep!!! Blue Devils

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top