LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-25-2005, 05:31 PM   #1
mattsthe2
LQ Newbie
 
Registered: Oct 2005
Posts: 14

Rep: Reputation: 0
Squid Output to the Terminal?


Ok is there a way to output the access.log file that squid appends in a real time environment using a terminal. So everytime someone tries to access a website boom the terminal windows lists that line in the terminal.


Like a console window?
 
Old 10-25-2005, 05:41 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Some of the options here may interest you: http://www.squid-cache.org/Doc/FAQ/FAQ-3.html#ss3.8

If you start squid manually from a terminal window and leave the window open, I believe messages will be displayed there.

Only one way to find out. Test it.
 
Old 10-25-2005, 07:12 PM   #3
Snowbat
Member
 
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338

Rep: Reputation: 31
Code:
tail -f /var/log/squid/access.log
 
Old 10-26-2005, 04:17 PM   #4
mattsthe2
LQ Newbie
 
Registered: Oct 2005
Posts: 14

Original Poster
Rep: Reputation: 0
That's a usueful command that's good to know but it wont dymanically update....will it?

I'll have to execute that command everytime.
 
Old 10-26-2005, 05:50 PM   #5
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Read the main pages for tail. The -f option means follow. So, yes, it will print lines to stdout as they are written to the log file you're tailing.
 
Old 10-27-2005, 02:02 PM   #6
mattsthe2
LQ Newbie
 
Registered: Oct 2005
Posts: 14

Original Poster
Rep: Reputation: 0
I stand corrected i tried and it works perfectly.....good job!!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirect terminal output to file AND terminal shan Linux - General 3 09-29-2006 08:36 AM
Copy output of Terminal Buffer tryangle Debian 2 08-08-2005 04:09 PM
how to redirect the output of a terminal? cpukiller Linux - Networking 5 11-10-2004 07:07 AM
Stupid question... too much output in terminal Darx Linux - Newbie 4 04-15-2004 09:20 AM
suppressing boot output to terminal aethereal Linux - Newbie 2 12-23-2001 08:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration