This is a discussion on How to redirect Output within the Shell scripting forums, part of the Development/Scripting category; Dear All. I have download a script from this path "http://www.cyberciti.biz/tips/wp-content/uploads/2006/06/fw.proxy.txt" and my Squid working as transparent proxy and also ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
Dear All.
I have download a script from this path "http://www.cyberciti.biz/tips/wp-content/uploads/2006/06/fw.proxy.txt" and my Squid working as transparent proxy and also this script is working fine but the only problem is that, output from this script is continuously coming on all console so how do I redirect this out to /dev/null or any other way so that my console will be clean. Regards. Puppen
__________________
someone somewhere is made for you. LOVE is Journey not a destination. ALL I want is EVERYTHING. |
| Sponsored Links | ||
|
|
|
|||
|
Dear niXcraft.
I run this script through this command ./scriptname and the ouput at the console is IN=eth1 OUT=MAC=ff:ff:ff:ff:00:10:7c:8a SRC=04.57.76.85.104 LEN=48 TOS=0x00 PREC=0x00 TTL 105 ID=50853 PROTO=udp SPT=1026 DPT=1046.... like that only. Regards. Puppen
__________________
someone somewhere is made for you. LOVE is Journey not a destination. ALL I want is EVERYTHING. |
|
||||
|
Solution # 1
Find line Code:
iptables -A INPUT -j LOG Solution # 2 You can modify /etc/syslog.conf file. Following is default for RHEL Code:
# Log all kernel messages to the console. # Logging much else clutters up the screen. #kern.* /dev/console # Log anything (except mail) of level info or higher. # Don't log private authentication messages! *.info;mail.none;authpriv.none;cron.none /var/log/messages # The authpriv file has restricted access. authpriv.* /var/log/secure # Log all the mail messages in one place. mail.* -/var/log/maillog # Log cron stuff cron.* /var/log/cron # Everybody gets emergency messages *.emerg * # Save news errors of level crit and higher in a special file. uucp,news.crit /var/log/spooler # Save boot messages also to boot.log local7.*
__________________
Rocky Jr. You may have my body & soul, but you will never touch my pride! If you have knowledge, let others light their candles at it. Certified to work on HP-UX / Sun Solaris / RedHat |
|
|||
|
Dear nixCraft & Rocky.
Both the solutions are not working, I have tried it. Is there any solution. Regards. Puppen
__________________
someone somewhere is made for you. LOVE is Journey not a destination. ALL I want is EVERYTHING. |
|
||||
|
Hello,
That is weird. Which distro you are using? Did you restart everything after changes? Login as normal user, if you don't see message than you are fine. Many distro turn on login for root user on console but for normal user there should not be any such message!
__________________
Rocky Jr. You may have my body & soul, but you will never touch my pride! If you have knowledge, let others light their candles at it. Certified to work on HP-UX / Sun Solaris / RedHat |
|
|||
|
Dear Rocky.
I am using RHEL4.0, I have not checked with other users all console message are coming on root login. regards. Puppen
__________________
someone somewhere is made for you. LOVE is Journey not a destination. ALL I want is EVERYTHING. |
|
|||
|
Dear Rocky.
My problem is that when ever I do something I use root login, as soon as I login console message are coming and frequency is so high that what ever I type I just went away with these messages, U can not type on console Is there any solution ???????????????????
__________________
someone somewhere is made for you. LOVE is Journey not a destination. ALL I want is EVERYTHING. |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Apache Redirect / to index.php using mod_rewrite .htaccess | kasimani | Web servers | 1 | 04-18-2008 11:17 PM |
| About iptables output | satimis | Networking, Firewalls and Security | 0 | 09-30-2007 08:30 AM |
| Redirect + Rewrite Problem in Lighttpd | Lizard King | Web servers | 4 | 07-17-2007 09:44 AM |
| redirect to www in lighttpd | muks | Web servers | 11 | 06-02-2007 10:55 PM |
| How can I redirect the output of time command to file | warren | Linux software | 13 | 08-25-2006 11:17 AM |