[CentOS] Text file manipulation in CentOS?

2010-05-11 Thread hadi motamedi
Dear All >From my previous posts , I learned from you to make use of 'sort' , 'grep' , and 'grep -v' to manipulate text files . At now, I have generated a large text file from my autoexpect script. To be more specific, I need to find how many distinct records are there in say column#1? How can I fi

Re: [CentOS] Text file manipulation in CentOS?

2010-05-11 Thread sheraznaz
Can you sample input and expected result. Sent from my Verizon Wireless BlackBerry -Original Message- From: hadi motamedi Date: Tue, 11 May 2010 09:09:23 To: CentOS mailing list Subject: [CentOS] Text file manipulation in CentOS? ___ CentOS

Re: [CentOS] Text file manipulation in CentOS?

2010-05-11 Thread sheraznaz
>>To be more specific, I need to find how many distinct records are there in >>say column#1? awk '{print $1}' filename | sort -u | wc -l This will show how many unique entries are present in column one (use awk -F to change delimiter e.g awk -F ":" for : delimiter) >> How can I filter out the

Re: [CentOS] Text file manipulation in CentOS?

2010-05-11 Thread hadi motamedi
I don't quite understand this part. > > Thank you very much for your reply.Please find below a segment of the file: CallId 9 State TK Bts 7 Bt 2 Tr (13 0x09) E1 (4 1 5) Tru (0 3 0) CallId 9 State TK Bts 7 Bt 2 Tr (13 0x09) E1 (4 1 5) Tru (0 3 0) CallId 9 State TK

Re: [CentOS] mail server best practices question

2010-05-11 Thread Coert
Benjamin Franz wrote: > On 05/10/2010 01:30 PM, Les Mikesell wrote: >> On 5/10/2010 2:51 PM, Benjamin Franz wrote: >>> Actually, they do (break when updating, that is). >>> >>> The problem is at least one of the packagers for clamd/amavisd-new >>> blindly overrides the path to clamd.sock by overwri

Re: [CentOS] mail server best practices question

2010-05-11 Thread Coert
Coert wrote: > Benjamin Franz wrote: >> On 05/10/2010 01:30 PM, Les Mikesell wrote: >>> On 5/10/2010 2:51 PM, Benjamin Franz wrote: Actually, they do (break when updating, that is). The problem is at least one of the packagers for clamd/amavisd-new blindly overrides the path to

[CentOS] Installing Firestarter

2010-05-11 Thread Vijay Shanker Dubey
Hi, I am planning to use to manage the incoming and outgoing network connections. Please give me some valuable read abouts and tips about this package. - Will it be a good choice for network management? What are the other options? If i choose to install Firestarter : - Have you installed and

Re: [CentOS] Text file manipulation in CentOS?

2010-05-11 Thread Eduardo Grosclaude
On Tue, May 11, 2010 at 5:51 AM, hadi motamedi wrote: > > >> I don't quite understand this part. >> > Thank you very much for your reply.Please find below a segment  of the file: If you give the following command: sort YOUR_FILE | uniq -c | sort -n | perl -ne 'print unless /(\d+)/ and $1 < 3' w

Re: [CentOS] mail server best practices question

2010-05-11 Thread Coert
Ned Slider wrote: > Coert wrote: >> Hello all, >> >> About a year ago I set up a mail server on CentOS using this howto: >> http://wanderingbarque.com/howtos/mailserver/mailserver.html >> I managed to add amavisd-new with clamav and spamassassin. >> It runs very well, but it runs on CentOS 5.2, and

Re: [CentOS] Text file manipulation in CentOS?

2010-05-11 Thread hadi motamedi
Does this help? > The first number is the number of occurrences of each CallId > Thank you for your help. It is very important for me to how the number of occurances of each CallId# . But can you please let me know why the number obtained from your code does not match with manual counting on say on

Re: [CentOS] Text file manipulation in CentOS?

2010-05-11 Thread Eduardo Grosclaude
On Tue, May 11, 2010 at 8:12 AM, hadi motamedi wrote: > > >> Does this help? >> The first number is the number of occurrences of each CallId > > Thank you for your help. It is very important for me to how the number of > occurances of each CallId# . But can you please let me know why the number >

Re: [CentOS] Not firewall, but what?

2010-05-11 Thread Jussi Hirvi
On 11.5.2010 3.40, Gordon Messmer wrote: > Routing policy is definitely required for a multi-homed system such as > Jussi presented, but NAT is totally superfluous. It adds an extra layer > of complexity that makes the system more difficult to diagnose and > configure, and contributes nothing of v

Re: [CentOS] Not firewall, but what?

2010-05-11 Thread Les Mikesell
Jussi Hirvi wrote: > On 11.5.2010 3.40, Gordon Messmer wrote: >> Routing policy is definitely required for a multi-homed system such as >> Jussi presented, but NAT is totally superfluous. It adds an extra layer >> of complexity that makes the system more difficult to diagnose and >> configure, and

Re: [CentOS] Installing Firestarter

2010-05-11 Thread Ron Loftin
On Tue, 2010-05-11 at 16:15 +0530, Vijay Shanker Dubey wrote: > Hi, > > I am planning to use to manage the incoming and outgoing > network connections. Please give me some valuable read abouts and tips > about this package. > > - Will it be a good choice for network management? What are the oth

Re: [CentOS] setup firewall with 3 nic cards

2010-05-11 Thread Jerry Geis
> > You need to make source routing on 74.223.8.176 and eth1. Please, read > this: http://linux-ip.net/html/adv-multi-internet.html > > -- > Dominik Zyla I read through the document. I dont see what I have done wrong still. Do my routing rules not look correct from my previous post? Sorry I am n

Re: [CentOS] Not firewall, but what?

2010-05-11 Thread Jussi Hirvi
> Jussi Hirvi wrote: >> But I have found no mention of this specific dual-bridge >> problem I have: that ip traffic goes in ok through any physical nic to >> the dom0 or domUs, but all replies are routed to only one nic (the >> default gateway). (I verified this with tcpdump.) On 11.5.2010 16.08,

Re: [CentOS] disable autofs timeout

2010-05-11 Thread Arun Khan
On Sat, May 8, 2010 at 8:42 PM, Brian Mathis wrote: > > A simple solution would be to setup a cron job that runs every 5 > minutes and does >    ls /mount/point > /dev/null I had to something on the same line at a client. On Mac OS X (10.5) workstation, users were complaining that "network file

Re: [CentOS] disable autofs timeout

2010-05-11 Thread Rudi Ahlers
On Sat, May 8, 2010 at 5:12 PM, Brian Mathis wrote: > > > > A simple solution would be to setup a cron job that runs every 5 > minutes and does >ls /mount/point > /dev/null > ___ > > How would this fix the problem though? I'm asking cause I sit wi

Re: [CentOS] disable autofs timeout

2010-05-11 Thread Brian Mathis
On Tue, May 11, 2010 at 10:01 AM, Rudi Ahlers wrote: > On Sat, May 8, 2010 at 5:12 PM, Brian Mathis wrote: >> >> A simple solution would be to setup a cron job that runs every 5 >> minutes and does >>    ls /mount/point > /dev/null > > How would this fix the problem though? I'm asking cause I sit

[CentOS] clients obtaining dhcp addys slowly

2010-05-11 Thread aurfalien
Hi all, This is unusual for me to observe. I've a dhcp server running on Centos 5.3 and it takes a while to answer clients asking for an address. This is playing some havoc with certain scripts at startup not fully working because of the address delay. I've even used a dhcp helper address t

Re: [CentOS] disable autofs timeout

2010-05-11 Thread aurfalien
On May 11, 2010, at 10:35 AM, Brian Mathis wrote: > On Tue, May 11, 2010 at 10:01 AM, Rudi Ahlers > wrote: >> On Sat, May 8, 2010 at 5:12 PM, Brian Mathis >> wrote: >>> >>> A simple solution would be to setup a cron job that runs every 5 >>> minutes and does >>>ls /mount/point > /dev/nul

Re: [CentOS] Not firewall, but what?

2010-05-11 Thread Gordon Messmer
On 05/11/2010 06:32 AM, Jussi Hirvi wrote: > Ok. But this error does not occur on my other CentOS 5 box (mailserver, > non-xen) which also has 2 nics for 2 public ip segments. There input-nic > is always = outputnic. And I have done nothing special to achieve this > (pure "linux magic"). That's why

Re: [CentOS] Not firewall, but what?

2010-05-11 Thread Les Mikesell
On 5/11/2010 8:32 AM, Jussi Hirvi wrote: >> Jussi Hirvi wrote: >>> But I have found no mention of this specific dual-bridge >>> problem I have: that ip traffic goes in ok through any physical nic to >>> the dom0 or domUs, but all replies are routed to only one nic (the >>> default gateway). (I veri

Re: [CentOS] clients obtaining dhcp addys slowly

2010-05-11 Thread nate
aurfal...@gmail.com wrote: > Hi all, > > This is unusual for me to observe. > > I've a dhcp server running on Centos 5.3 and it takes a while to > answer clients asking for an address. You happen to be running STP at the edge switch ports? If so then disable it. nate ___

Re: [CentOS] clients obtaining dhcp addys slowly

2010-05-11 Thread aurfalien
On May 11, 2010, at 12:09 PM, nate wrote: > aurfal...@gmail.com wrote: >> Hi all, >> >> This is unusual for me to observe. >> >> I've a dhcp server running on Centos 5.3 and it takes a while to >> answer clients asking for an address. > > You happen to be running STP at the edge switch ports? If s

Re: [CentOS] setup firewall with 3 nic cards

2010-05-11 Thread Dominik Zyla
On Tue, May 11, 2010 at 09:24:53AM -0400, Jerry Geis wrote: > > > > You need to make source routing on 74.223.8.176 and eth1. Please, read > > this: http://linux-ip.net/html/adv-multi-internet.html > > > > -- > > Dominik Zyla > I read through the document. I dont see what I have done wrong still.

Re: [CentOS] Not firewall, but what?

2010-05-11 Thread Jussi Hirvi
On 11.5.2010 18.36, Gordon Messmer wrote: > That's odd. Is there any output on that host from "ip rule show"? What > about: > > # ip rule show > # ip rule show | awk '{print $NF}' | sort | uniq | \ > while read table ; do echo ; echo " $table" ; > ip route show table "$table" ; done Int

Re: [CentOS] Text file manipulation in CentOS?

2010-05-11 Thread Dominik Zyla
On Tue, May 11, 2010 at 08:25:43AM +, sheraz...@yahoo.com wrote: > >>To be more specific, I need to find how many distinct records are there in > >>say column#1? > > awk '{print $1}' filename | sort -u | wc -l > > This will show how many unique entries are present in column one (use awk -F

[CentOS] Openbravo on CentOS

2010-05-11 Thread Joseph L. Casale
Anyone here supporting Openbravo in CentOS, opinions or comments wrt how it runs or nuances from the os side would be appreciated! Thanks, jlc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Formatting file system too slow on CentOS

2010-05-11 Thread Christoph Maser
Am Dienstag, den 11.05.2010, 11:38 +0530 schrieb Rajagopal Swaminathan: > Greetings, > > On Tue, May 11, 2010 at 8:08 AM, David Suhendrik wrote: > > @Rajagopal: > > > > This result: > > # hdparm -tT /dev/hda5 > > > > /dev/hda5: > > Timing buffered disk reads:8 MB in 3.08 seconds = 2.60 MB

[CentOS] SAMS (Squid Account Management)

2010-05-11 Thread Test
Anyone with experience with the SAMS package for managing squid ? I am looking for a webbased squid admin tool for centos, but so far no luck... -- Test ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] SAMS (Squid Account Management)

2010-05-11 Thread Lucian
On Tue, May 11, 2010 at 9:55 PM, Test wrote: > > Anyone with experience with the SAMS package for managing squid ? > > I am looking for a webbased squid admin tool for centos, but so far no > luck... > Webmin? > > -- > Test > > ___ > CentOS mailing li

[CentOS] create volumn

2010-05-11 Thread ann kok
Hi How can I create volumn in the new installation? I can't find any documents to help Thank you ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] create volumn

2010-05-11 Thread Karanbir Singh
On 05/11/2010 11:25 PM, ann kok wrote: > Hi > > How can I create volumn in the new installation? http://www.centos.org/docs/5/html/5.2/Deployment_Guide/ch-lvm.html - KB ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/

Re: [CentOS] disable autofs timeout

2010-05-11 Thread Todd Denniston
Brian Mathis wrote, On 05/11/2010 10:35 AM: > On Tue, May 11, 2010 at 10:01 AM, Rudi Ahlers wrote: >> On Sat, May 8, 2010 at 5:12 PM, Brian Mathis wrote: >>> A simple solution would be to setup a cron job that runs every 5 >>> minutes and does >>>ls /mount/point > /dev/null >> How would this

[CentOS] ldconfig: /usr/lib64/libfreebl3.so is not a symbolic link

2010-05-11 Thread a arias
I have been getting the following error when trying to run ldconfig: ldconfig: /usr/lib64/libfreebl3.so is not a symbolic link # ll /usr/lib64/libfreebl3.so -rwxr-xr-x 1 root root 312336 Mar 28 11:13 /usr/lib64/libfreebl3.so I've used "yum whatprovides /usr/lib64/libfreeb13.so" to determine t

Re: [CentOS] disable autofs timeout

2010-05-11 Thread aurfalien
On May 11, 2010, at 6:49 PM, Todd Denniston wrote: > Brian Mathis wrote, On 05/11/2010 10:35 AM: >> On Tue, May 11, 2010 at 10:01 AM, Rudi Ahlers >> wrote: >>> On Sat, May 8, 2010 at 5:12 PM, Brian Mathis >>> wrote: A simple solution would be to setup a cron job that runs every 5 m

Re: [CentOS] ldconfig: /usr/lib64/libfreebl3.so is not a symbolic link

2010-05-11 Thread Dominik Zyla
On Tue, May 11, 2010 at 07:22:05PM -0400, a arias wrote: > I have been getting the following error when trying to run ldconfig: > > > ldconfig: /usr/lib64/libfreebl3.so is not a symbolic link > > > # ll /usr/lib64/libfreebl3.so > > -rwxr-xr-x 1 root root 312336 Mar 28 11:13 /usr/li

Re: [CentOS] ldconfig: /usr/lib64/libfreebl3.so is not a symbolic link

2010-05-11 Thread a arias
That did not work. It fact, i got the following message during the yum reinstall process: /sbin/ldconfig: /usr/lib64/libfreebl3.so is not a symbolic link On Tue, May 11, 2010 at 7:39 PM, Dominik Zyla wrote: > On Tue, May 11, 2010 at 07:22:05PM -0400, a arias wrote: > > I have been getting the

Re: [CentOS] ldconfig: /usr/lib64/libfreebl3.so is not a symbolic link

2010-05-11 Thread Dominik Zyla
On Tue, May 11, 2010 at 07:50:05PM -0400, a arias wrote: > That did not work. It fact, i got the following message during the yum > reinstall process: > > /sbin/ldconfig: /usr/lib64/libfreebl3.so is not a symbolic link According to `yum deplist glibc-2.5-42.el5_4.3.x86_64' you may also try with r

Re: [CentOS] Not firewall, but what?

2010-05-11 Thread Gordon Messmer
On 05/11/2010 10:21 AM, Jussi Hirvi wrote: > > Interesting commands, and revealing, it seems to me. Well, there you go. Something set up policy routing on the working host. Do you have any files like /etc/sysconfig/network-scripts/route-* or /etc/sysconfig/network-scripts/rule-* ?

Re: [CentOS] Openbravo on CentOS

2010-05-11 Thread Bob Taylor
BOB TAYLOR HAS DIED PLEASE TAKE HIS NAME OFF YOUR MAIL OUT LIST THANKS ... On Tue, May 11, 2010 at 11:03 AM, Joseph L. Casale < jcas...@activenetwerx.com> wrote: > Anyone here supporting Openbravo in CentOS, opinions or comments > wrt how it runs or nuances from the os side would be appreciated

Re: [CentOS] [CentOS-announce] CESA-2010:0112 Critical CentOS 5 i386 firefox Update

2010-05-11 Thread Bob Taylor
BOB TAYLOR HAS DIED PLEASE TAKE HIS NAME OFF YOUR MAIL OUT LIST THANKS ... On Mon, Feb 22, 2010 at 5:17 PM, Karanbir Singh wrote: > > CentOS Errata and Security Advisory 2010:0112 Critical > > Upstream details at : https://rhn.redhat.com/errata/RHSA-2010-0112.html > > The following up

Re: [CentOS] ldconfig: /usr/lib64/libfreebl3.so is not a symbolic link

2010-05-11 Thread a arias
Zyla, that did not work either. I was able to work around this by doing the following: mv /usr/lib64/libfreebl3.so /usr/lib64/libfreebl3.so.0.1; ln -snf /usr/lib64/libfreebl3.so.0.1 /usr/lib64/libfreel3.so I wonder if I am the only one who is experiencing this. What could have caused this? Tha

Re: [CentOS] [CentOS-announce] CESA-2010:0394 Important CentOS 4 x86_64 kernel security, bug fix, and enhancement update

2010-05-11 Thread Christopher Chan
Any list admins out there that can give Mrs. Taylor a hand? On Wednesday, May 12, 2010 10:08 AM, Bob Taylor wrote: > BOB TAYLOR HAS DIED PLEASE TAKE HIS NAME OFF YOUR MAIL OUT LIST THANKS > ... > > > On Fri, May 7, 2010 at 3:12 PM, Tru Huynh > wrote: > > entOS Errata

Re: [CentOS] [CentOS-announce] CESA-2010:0394 Important CentOS 4 x86_64 kernel security, bug fix, and enhancement update

2010-05-11 Thread Bob Taylor
BOB TAYLOR HAS DIED PLEASE TAKE HIS NAME OFF YOUR MAIL OUT LIST THANKS ... On Fri, May 7, 2010 at 3:12 PM, Tru Huynh wrote: > entOS Errata and Security Advisory CESA-2010:0394 > > kernel security, bug fix, and enhancement update security update for CentOS > 4 x86_64: > https:

Re: [CentOS] Text file manipulation in CentOS?

2010-05-11 Thread hadi motamedi
$ cat hadi | sort | uniq -c -w 9 | sort -n | perl -ne 'print unless > /(\d+)/ and $1 < 3' > 4 CallId 91 State TK Bts 5 Bt 1 Tr (4 0x0f) E1 (4 0 > 18) Tru (0 1 1) > 7 CallId 92 State CL Bts 7 Bt 1 Tr (6 0x0a) E1 (3 1 > Thank you for your reply. To just have one '

Re: [CentOS] Text file manipulation in CentOS?

2010-05-11 Thread hadi motamedi
> > If I understand correctly, you can pipe your output to: `awk '{a=$1} {if > (a > 3) print a}''. `a' is awk variable. `$1' is first column of awk > input so you probably need to change it. > > > Thank you for your message . Yes , you are right . I really need to filter out that CallId with numb

Re: [CentOS] Text file manipulation in CentOS?

2010-05-11 Thread Eduardo Grosclaude
On Wed, May 12, 2010 at 1:12 AM, hadi motamedi wrote: > > >> $ cat hadi | sort | uniq -c -w 9 | sort -n | perl -ne 'print unless >> /(\d+)/ and $1 < 3' >>      4 CallId 91  State TK         Bts 5  Bt 1  Tr (4 0x0f)  E1 (4 0 >> 18)  Tru (0 1 1) >>      7 CallId 92  State CL         Bts 7  Bt 1  Tr

Re: [CentOS] Text file manipulation in CentOS?

2010-05-11 Thread John R. Dennison
On Wed, May 12, 2010 at 05:12:48AM +0100, hadi motamedi wrote: > $ cat hadi | sort | uniq -c -w 9 | sort -n | perl -ne 'print unless > > /(\d+)/ and $1 < 3' > > 4 CallId 91 State TK Bts 5 Bt 1 Tr (4 0x0f) E1 (4 0 > > 18) Tru (0 1 1) > > 7 CallId 92 State CL Bts 7

Re: [CentOS] Text file manipulation in CentOS?

2010-05-11 Thread hadi motamedi
I'm likely to get in trouble for this, but frankly I don't >really care. > > Sorry. I just provided the data that the Gentlemen were asking me . I thought that they are interested in my case and want to check out my mistakes. Sorry bothering you __

Re: [CentOS] Formatting file system too slow on CentOS

2010-05-11 Thread David Suhendrik
I tried to change the configuration of a compatible sata in bios to AHCI, but my hard drive is not detected. I do not have a smart array controller. I do this AHCI features need smart array controller? I've been looking for a reference, but did not find. Any suggestions? -- Best regards, David

Re: [CentOS] Not firewall, but what?

2010-05-11 Thread Jussi Hirvi
On 12.5.2010 3.25, Gordon Messmer wrote: > On 05/11/2010 10:21 AM, Jussi Hirvi wrote: >> >> Interesting commands, and revealing, it seems to me. > > Well, there you go. Something set up policy routing on the working > host. Do you have any files like /etc/sysconfig/network-scripts/route-* > or /e

Re: [CentOS] REMOVE NAME FROM YOUR EMAIL LIST

2010-05-11 Thread Thom Paine
LOL, so who is checking his email? On Tue, May 11, 2010 at 11:07 PM, Bob Taylor wrote: > BOB TAYLOR HAS DIED PLEASE REMOVE HIS NAME FROM YOUR E MAIL LIST   THANKS > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinf

Re: [CentOS] Not firewall, but what?

2010-05-11 Thread Jussi Hirvi
> On 05/11/2010 10:21 AM, Jussi Hirvi wrote: >> Interesting commands, and revealing, it seems to me. On 12.5.2010 3.25, Gordon Messmer wrote: > Well, there you go. Something set up policy routing on the working > host. Do you have any files like /etc/sysconfig/network-scripts/route-* > or /etc/s

Re: [CentOS] Text file manipulation in CentOS?

2010-05-11 Thread Chris Geldenhuis
John R. Dennison wrote: > On Wed, May 12, 2010 at 05:12:48AM +0100, hadi motamedi wrote: > >> $ cat hadi | sort | uniq -c -w 9 | sort -n | perl -ne 'print unless >> >>> /(\d+)/ and $1 < 3' >>> 4 CallId 91 State TK Bts 5 Bt 1 Tr (4 0x0f) E1 (4 0 >>> 18) Tru (0 1 1) >>>

[CentOS] Adding Repositories and using yum to download packages

2010-05-11 Thread Jatin Davey
Hi I am using CentOS 5.3 and after installing the OS i scrolled to the /etc/yum.repos.d directory and i could not find any repositories being present there. So i googled a bit on adding the repositories and found the link: http://www.osresources.com/index.php?action=artikel&cat=11&id=6&artlang

Re: [CentOS] Adding Repositories and using yum to download packages

2010-05-11 Thread John R Pierce
Jatin Davey wrote: > Hi > > I am using CentOS 5.3 and after installing the OS i scrolled to the > /etc/yum.repos.d directory and i could not find any repositories being > present there. So i googled a bit on adding the repositories and found > the link: > > http://www.osresources.com/index.php?a

Re: [CentOS] Adding Repositories and using yum to download packages

2010-05-11 Thread Jatin Davey
On 5/12/2010 11:49 AM, John R Pierce wrote: > Jatin Davey wrote: > >> Hi >> >> I am using CentOS 5.3 and after installing the OS i scrolled to the >> /etc/yum.repos.d directory and i could not find any repositories being >> present there. So i googled a bit on adding the repositories and found

Re: [CentOS] Adding Repositories and using yum to download packages

2010-05-11 Thread John R. Dennison
On Wed, May 12, 2010 at 12:18:59PM +0530, Jatin Davey wrote: > > I follwed the link that you have given but in it the explanation is > given assuming that the Base repo is already present in the > /etc/yum.repos.d directory but in my box i dont have any files in the > /etc/yum.repos.d directory