Re: [CentOS] Server unresponsive until reboot, memory exhausted

2010-12-30 Thread David Sommerseth
On 29/12/10 17:06, cpol...@surewest.net wrote: > On 12/28/2010 01:41 PM, james wrote: >> You may be right about the restart, but I would like to know WHAT is >> crashing my web server regardless. We are not running any shiftily >> coded sites or apps on this server that I'm aware of (obviously >> s

Re: [CentOS] appliance to embed Centos

2010-12-30 Thread Steve Clark
On 12/29/2010 01:23 AM, Nataraj wrote: On 12/28/2010 09:04 PM, Eero Volotinen wrote: 2010/12/29 John R Pierce: On 12/28/10 1:55 PM, Nataraj wrote: - fast enough to do openvpn encryption on WAN links ranging from 50mb to 100mb THAT is a tough requirement. I was go

Re: [CentOS] appliance to embed Centos

2010-12-30 Thread Eero Volotinen
2010/12/30 Steve Clark : > On 12/29/2010 01:23 AM, Nataraj wrote: > > On 12/28/2010 09:04 PM, Eero Volotinen wrote: > > > 2010/12/29 John R Pierce : > > > On 12/28/10 1:55 PM, Nataraj wrote: > > > - fast enough to do openvpn encryption on WAN links ranging from 50mb > to 100mb > > > THAT is a tough

Re: [CentOS] appliance to embed Centos

2010-12-30 Thread Steve Clark
On 12/30/2010 07:34 AM, Eero Volotinen wrote: 2010/12/30 Steve Clark: On 12/29/2010 01:23 AM, Nataraj wrote: On 12/28/2010 09:04 PM, Eero Volotinen wrote: 2010/12/29 John R Pierce: On 12/28/10 1:55 PM, Nataraj wrote: - fast enough to do openvpn encryption on WAN links ranging from 50m

Re: [CentOS] appliance to embed Centos

2010-12-30 Thread Steve Clark
On 12/30/2010 07:34 AM, Eero Volotinen wrote: 2010/12/30 Steve Clark: On 12/29/2010 01:23 AM, Nataraj wrote: On 12/28/2010 09:04 PM, Eero Volotinen wrote: 2010/12/29 John R Pierce: On 12/28/10 1:55 PM, Nataraj wrote: - fast enough to do openvpn encryption on WAN links ranging from 50m

[CentOS] perl code to remove newlines

2010-12-30 Thread ken
Given an HTML file which looks like this: - begin snippet - We've Lied to You… We've Lied to You… ) { s/<(\w*\W)/<\L$1/g; # Downcase XXX in "/)# if this line starts with '>' { # then $curr = tell $in;

Re: [CentOS] appliance to embed Centos

2010-12-30 Thread Eero Volotinen
2010/12/30 Steve Clark : > On 12/30/2010 07:34 AM, Eero Volotinen wrote: > > 2010/12/30 Steve Clark : > > > On 12/29/2010 01:23 AM, Nataraj wrote: > > On 12/28/2010 09:04 PM, Eero Volotinen wrote: > > > 2010/12/29 John R Pierce : > > > On 12/28/10 1:55 PM, Nataraj wrote: > > > - fast enough to do o

[CentOS] noob question about mock

2010-12-30 Thread nux
Hi, Been recently more and more tempted to use mock for building rpms, but looking at it I have one problem. As far as I could read about it, mock essentially rebuilds srpms so to use it I would need a separate "classical" build environment to create those srpms in the first place. Am I right o

Re: [CentOS] noob question about mock

2010-12-30 Thread Ryan Wagoner
On Thu, Dec 30, 2010 at 8:51 AM, wrote: > Hi, > > Been recently more and more tempted to use mock for building rpms, but > looking at it I have one problem. As far as I could read about it, mock > essentially rebuilds srpms so to use it I would need a separate "classical" > build environment to c

Re: [CentOS] perl code to remove newlines

2010-12-30 Thread Bowie Bailey
On 12/30/2010 8:19 AM, ken wrote: > Given an HTML file which looks like this: > > - begin snippet - > > > > We've Lied to You…> NAME="GENERATOR" > CONTENT="Modular DocBook HTML Stylesheet Version 1.79"> REL="HOME" > TITLE="Maximum RPM" > HREF="index.html"> REL="UP" > TITLE="Using R

Re: [CentOS] noob question about mock

2010-12-30 Thread Leonard den Ottolander
Hi, On Thu, 2010-12-30 at 13:51 +, n...@li.nux.ro wrote: > As far as I could read about it, mock > essentially rebuilds srpms so to use it I would need a separate "classical" > build environment to create those srpms in the first place. > Am I right or did I get something terribly wrong? Si

Re: [CentOS] perl code to remove newlines

2010-12-30 Thread ken
On 12/30/2010 09:18 AM Bowie Bailey wrote: > On 12/30/2010 8:19 AM, ken wrote: >> Given an HTML file which looks like this: >> >> - begin snippet - >> >> >> >> We've Lied to You…>> > NAME="GENERATOR" >> CONTENT="Modular DocBook HTML Stylesheet Version 1.79">> REL="HOME" >> TITLE="M

Re: [CentOS] perl code to remove newlines

2010-12-30 Thread John Doe
From: ken > Some file this script would need to process could very well be > ridiculously huge, which is why I chose to process line-by-line. > > Secondly, yes, I was already using the general strategy of taking out > the newlines (where they're misplaced) and then putting them back in > (wh

Re: [CentOS] perl code to remove newlines

2010-12-30 Thread Bowie Bailey
On 12/30/2010 10:24 AM, ken wrote: > On 12/30/2010 09:18 AM Bowie Bailey wrote: >> On 12/30/2010 8:19 AM, ken wrote: >>> Given an HTML file which looks like this: >>> >>> - begin snippet - >>> >>> >>> >>> We've Lied to You…>>> >> NAME="GENERATOR" >>> CONTENT="Modular DocBook HTML St

Re: [CentOS] noob question about mock

2010-12-30 Thread nux
Ryan Wagoner writes: > On Thu, Dec 30, 2010 at 8:51 AM, wrote: >> Hi, >> >> Been recently more and more tempted to use mock for building rpms, but >> looking at it I have one problem. As far as I could read about it, mock >> essentially rebuilds srpms so to use it I would need a separate "classi

[CentOS] recursively count the words occurrence in the text files

2010-12-30 Thread S Mathias
I just can't google for it: I'm searching for a "bash" "one liner" (awk, perl, or anything) for this: there are text files, in several directories: mkdir one mkdir two mkdir three echo "word1 word2 word3" > one/asf.txt echo "word2 word4, word5" > one/asfcxv saf.txt echo "word1. word2" > one/d

Re: [CentOS] recursively count the words occurrence in the text files

2010-12-30 Thread Stephen Harris
On Thu, Dec 30, 2010 at 10:34:58AM -0800, S Mathias wrote: > I just can't google for it: I'm a little concerned about the number of "schoolbook" questions showing on this list, recently. However... > echo "word1 word2 word3" > one/asf.txt > echo "word2 word4, word5" > one/asfcxv saf.txt Yeah, t

Re: [CentOS] recursively count the words occurrence in the text files

2010-12-30 Thread Mark
On Thu, Dec 30, 2010 at 10:56 AM, Stephen Harris wrote: > > I'm a little concerned about the number of "schoolbook" questions showing > on this list, recently.  However... > I have to wonder why we are doing this fellow's homework for him at all. These are fairly basic exercises in learning to us

Re: [CentOS] perl code to remove newlines

2010-12-30 Thread Sean
Not sure exactly what you are trying to do, but Tie::File might be worth a look at if you haven't done so already? Sean ken wrote: > Given an HTML file which looks like this: > > - begin snippet - > >> > > We've Lied to You…> > > NAME="GENERATOR" > CONTENT="Modular DocBoo

Re: [CentOS] perl code to remove newlines

2010-12-30 Thread cpolish
John Doe wrote: > $ cat $FILE | tr "\n" " " | sed 's/ *>\n\nhttp://www.partmaps.org/era/unix/award.html#uucaletter -- "Pedantic, I?" -- Alexei Sayle ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] noob question about mock

2010-12-30 Thread Gordon Messmer
On 12/30/2010 05:51 AM, n...@li.nux.ro wrote: > Been recently more and more tempted to use mock for building rpms, but > looking at it I have one problem. As far as I could read about it, mock > essentially rebuilds srpms so to use it I would need a separate "classical" > build environment to creat

Re: [CentOS] Dual or quad fast ethernet NICs (that work with CentOS)

2010-12-30 Thread James Bensley
We have an Intel Pro 1000 MT, quad port Gig NIC in a CentOS 5.5 box, works great. -- Regards, James. http://www.jamesbensley.co.cc/ There are 10 kinds of people in the world; Those who understand Vigesimal, and J others...? ___ CentOS mailing list Cen

[CentOS] remove newlines / perl /concise example

2010-12-30 Thread ken
Thanks for the previous tips and suggestions. Here's a more concise example: Input file: I want everything on one line, i.e., remove all newlines. Like so: Simple perl code: #!/usr/bin/env perl # Remove newlines from a file in two ways: # (1) Just "chomp" them; # (2) Replace them with

Re: [CentOS] appliance to embed Centos

2010-12-30 Thread Nataraj
On 12/30/2010 04:34 AM, Eero Volotinen wrote: > 2010/12/30 Steve Clark : >> On 12/29/2010 01:23 AM, Nataraj wrote: >> >> On 12/28/2010 09:04 PM, Eero Volotinen wrote: >> >> >> 2010/12/29 John R Pierce : >> >> >> On 12/28/10 1:55 PM, Nataraj wrote: >> >> >> - fast enough to do openvpn encryption on

Re: [CentOS] perl code to remove newlines

2010-12-30 Thread ken
On 12/30/2010 11:01 AM John Doe wrote: > From: ken > >> Some file this script would need to process could very well be >> ridiculously huge, which is why I chose to process line-by-line. >> >> Secondly, yes, I was already using the general strategy of taking out >> the newlines (where they're

Re: [CentOS] remove newlines / perl /concise example

2010-12-30 Thread Stephen Harris
On Thu, Dec 30, 2010 at 04:57:46PM -0500, ken wrote: > open(my $in, "<", "$infilename") or die "Can't open file > while (<$in>) > { > # Neither of the two commands below works as expected. > chomp; # remove trailing newline. > # s/\n/ /;# replace newline

Re: [CentOS] Script Output Format

2010-12-30 Thread Alejandro Rodriguez Luna
Thanks for the reply, the output it's ok, none of the variabbles or values are null, i just want that the format appears like this: 29-12-10/11:43:01,0,250,0,/FIM     0,/mytest         0,/mockofprod/financing/customercentre  

Re: [CentOS] perl code to remove newlines

2010-12-30 Thread Jerry McAllister
On Thu, Dec 30, 2010 at 08:19:00AM -0500, ken wrote: It isn't perl, but does 'tr' exist in CentOS (it does in FreeBSD)? It would do it. jerry > > Given an HTML file which looks like this: > > - begin snippet - > > > >We've Lied to You… > NAME="GENERATOR" > CONTENT="Modula

[CentOS] OT how to prevent oversubscription of a disk

2010-12-30 Thread Dave
I want to add up the quotas I've assigned on a particular partition and see if the total is bigger than the disk. It's possible to do this (awkwardly) using repquota or quota. Is there no more accurate/elegant way? I can't be the first person to worry that more quota has been issued than the disk c

[CentOS] Anaconda hangs using 100% CPU

2010-12-30 Thread cpolish
Dear all, I have been struggling with my first PXEboot today, using a kickstart with packages served over http on the local network. The details: - Anaconda is using 100% CPU - CentOS 5.5 i386 downloaded yesterday - .iso md5sums checked out good - 0 network errors showing (ifconfig) - consol

Re: [CentOS] perl code to remove newlines

2010-12-30 Thread Bart Schaefer
On Thu, Dec 30, 2010 at 5:19 AM, ken wrote: > > > - begin snippet - > while (<$in>) > { >    s/<(\w*\W)/<\L$1/g;         # Downcase XXX in "    s/<\/(\w*\W)/<\/\L$1/g;     # Downcase XXX in "    if(/^>/)                    # if this line starts with '>' >    {                      

Re: [CentOS] perl code to remove newlines

2010-12-30 Thread Bart Schaefer
(Drat, keyboard glitch caused that to be sent before I was finished.) On Thu, Dec 30, 2010 at 5:19 AM, ken wrote: > > > - begin snippet - > while (<$in>) > { >    s/<(\w*\W)/<\L$1/g;         # Downcase XXX in "    s/<\/(\w*\W)/<\/\L$1/g;     # Downcase XXX in " s/^(^[>])/\n$

Re: [CentOS] perl code to remove newlines

2010-12-30 Thread Bart Schaefer
Oops again, typo: >      s/^(^[>])/\n$1/; Should be s/^([^>])/\n$1/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] amanda backup ssh key

2010-12-30 Thread bluethundr
hello list, I am attempting to ssh via a user account setup for amanda backups from the backup server to the test backup client. AFAIK everything is setup correctly yet when I ssh as the user to the client I have to type the password. the public key is in the authorized_keys file of the client an

Re: [CentOS] segfault

2010-12-30 Thread Sandeil Tenebro
Hi list, As an update I have the latest core dump and did a back trace. Please see below. Thank you, Sandeil = *** thread apply all bt #20131 0x2ac96feba29a in ?? () from /lib64/libpcre.so.0 #20132 0x2ac96feba1d9 in ?? () from /lib64/libpcre.so.0 #20133 0x2ac96feba29a in ?? () f