Re: [CentOS] OT: Why VM?

2011-05-30 Thread John Doe
From: James B. Byrne > I have been working off and on with Xen and KVM on a couple of test > hosts for that past year or so and while now everything seems to > function as expected, more or less, I find myself asking the > question: Why? I saw a company architecture presentation where they had p

Re: [CentOS] PHP Source

2011-05-30 Thread John Doe
From: Ron Young >I have a pressing need to compile a utility called odbtp into php on my new 64 >bit machine with an AMD chip that is currently running CentOS 5.6. >Where can I find the source files for the CentOS recommended versions of php.  >I have searched the CentOS and related repository s

Re: [CentOS] SSD for Centos SWAP /tmp & /var/ partition

2011-05-30 Thread John Doe
From: Steve Clark > Unfortunately when I try it on SL 6.0 hdparm gets a segment > Hmmm sector still had random data after rm tmpfile and sync; If SL 6.0 does not support it, I wonder if CentOS 6.0 (or even RH) will... damn.  :/ Guess you have no option to test it with the latest Fedora?

Re: [CentOS] local repo

2011-05-30 Thread Daniel Bird
On 27/05/2011 16:22, Jerry Geis wrote: > Hi all, > > When I am installing I use kickstart and have a line like: > repo --name=Updates > --baseurl=http://192.168.1.14/centos/5.6/updates/x86_64/ > and that works great for installing the OS. > > After that the machine reboots and I have it automa

Re: [CentOS] PHP Source

2011-05-30 Thread Keith Roberts
On Mon, 30 May 2011, John Doe wrote: To: CentOS mailing list From: John Doe Subject: Re: [CentOS] PHP Source From: Ron Young I have a pressing need to compile a utility called odbtp into php on my new 64 bit machine with an AMD chip that is currently running CentOS 5.6. Where can I find th

Re: [CentOS] SSD for Centos SWAP /tmp & /var/ partition

2011-05-30 Thread Drew
> Hmmm sector still had random data after rm tmpfile and sync; > > /dev/sda3 on / type ext4 (rw,noatime,nodiratime,discard) > > Device Model: KINGSTON SS100S216G > Serial Number:    16GB40013421 > Firmware Version: D100719 > > Suppose to support TRIM. Just so you know, in Jan '09 there was

[CentOS] Getting the return value of the last command run

2011-05-30 Thread Dotan Cohen
All commands return a value, usually 0 if run properly. For instance, try: $ ls && echo "done" $ lsd && echo "done" The echo command is only executed if the ls command exited successfully. If one did not add the echo command with the && after a command, how can he determine if the command exited s

Re: [CentOS] OT: Why VM?

2011-05-30 Thread James B. Byrne
Thank you all for a most enlightening discussion. I had not considered using multiple VMs running on a central host to emulate desktop workstations. This application may be of considerable benefit to us as we are constrained by our federal government to use a Java based web app written so that it

Re: [CentOS] Getting the return value of the last command run

2011-05-30 Thread Bob Beers
On Mon, May 30, 2011 at 10:38 AM, Dotan Cohen wrote: > All commands return a value, usually 0 if run properly. For instance, try: > $ ls && echo "done" > $ lsd && echo "done" > > The echo command is only executed if the ls command exited > successfully. If one did not add the echo command with the

Re: [CentOS] Getting the return value of the last command run

2011-05-30 Thread Christopher J. Buckley
Have a read up on using return codes in Bash. http://tldp.org/LDP/abs/html/exit-status.html Quick example: #!/bin/bash ls foobar if [ $? -eq 0 ] ; then echo "successful" else echo "not successful" fi You get the idea.. Cheer

Re: [CentOS] Getting the return value of the last command run

2011-05-30 Thread Dotan Cohen
On Mon, May 30, 2011 at 17:55, Bob Beers wrote: > You can check the return code. > > $ ls > $ echo $? > > 0 (usually) indicates success. > Thank you Bob, that is exactly what I was looking for! -- Dotan Cohen http://gibberish.co.il http://what-is-what.com

Re: [CentOS] Getting the return value of the last command run

2011-05-30 Thread Keith Roberts
On Mon, 30 May 2011, Christopher J. Buckley wrote: > To: CentOS mailing list > From: Christopher J. Buckley > Subject: Re: [CentOS] Getting the return value of the last command run > > Have a read up on using return codes in Bash. > > http://tldp.org/LDP/abs/html/exit-status.html > >

Re: [CentOS] Getting the return value of the last command run

2011-05-30 Thread Ljubomir Ljubojevic
Dotan Cohen wrote: > On Mon, May 30, 2011 at 17:55, Bob Beers wrote: >> You can check the return code. >> >> $ ls >> $ echo $? >> >> 0 (usually) indicates success. >> > > Thank you Bob, that is exactly what I was looking for! > > > Take notice that you can use $? *only* once. So if you ever ne

Re: [CentOS] Getting the return value of the last command run

2011-05-30 Thread Dotan Cohen
On Mon, May 30, 2011 at 17:59, Christopher J. Buckley wrote: > Have a read up on using return codes in Bash. > http://tldp.org/LDP/abs/html/exit-status.html Thanks, Chris, the link was very informative. I should spend more time at the tldp site, I know. -- Dotan Cohen http://gibberish.co.il h

Re: [CentOS] Getting the return value of the last command run

2011-05-30 Thread Dotan Cohen
On Mon, May 30, 2011 at 18:05, Ljubomir Ljubojevic wrote: > Take notice that you can use $? *only* once. So if you ever need to > reuse that status, you must first assign exit code to a variable and > then evaluate variable. > Actually, that was kink of obvious to me, but good thing that you poin

Re: [CentOS] OT: Why VM?

2011-05-30 Thread Ljubomir Ljubojevic
James B. Byrne wrote: > Thank you all for a most enlightening discussion. I had not > considered using multiple VMs running on a central host to emulate > desktop workstations. This application may be of considerable > benefit to us as we are constrained by our federal government to use > a Java

Re: [CentOS] OT: Why VM?

2011-05-30 Thread Les Mikesell
On 5/30/11 9:40 AM, James B. Byrne wrote: > Thank you all for a most enlightening discussion. I had not > considered using multiple VMs running on a central host to emulate > desktop workstations. This application may be of considerable > benefit to us as we are constrained by our federal governm

[CentOS] BIND9 - automatic zone definition replication to slave

2011-05-30 Thread Martin Šťastný
Hello, I have simple question - is there a way to automatically replicate zone definition (not zone itself - this is easy) to slave server using BIND9? Is it BIND built-in or are there prebuilt scripts? Or I have to write that script on my own (started by Cron, transfer file with zone names, creat

Re: [CentOS] Getting the return value of the last command run

2011-05-30 Thread Robert Nichols
On 05/30/2011 10:00 AM, Dotan Cohen wrote: > On Mon, May 30, 2011 at 17:55, Bob Beers wrote: >> You can check the return code. >> >> $ ls >> $ echo $? >> >> 0 (usually) indicates success. >> > > Thank you Bob, that is exactly what I was looking for! And when you have several commands in a pipelin

Re: [CentOS] Getting the return value of the last command run

2011-05-30 Thread Stephen Harris
On Mon, May 30, 2011 at 11:24:19AM -0500, Robert Nichols wrote: > $ true | false | false | true | true > $ echo ${PIPESTATUS[*]} > 0 1 1 0 0 Note that this is bash-ism; don't depend on it in a POSIX environment! -- rgds Stephen ___ Cent

Re: [CentOS] Where is the Centos Linux 5.5 kernel syscall handler for mmap?

2011-05-30 Thread Keith Roberts
Hi. Sorry for the late reply, but I did not get the message that was archived. I stumbled upon it here: http://osdir.com/ml/centos/2011-05/msg01193.html All I got was this message: I am out of the office until 06/11/2011. I will be out of the office starting 5/27/2011 and will not return unt

[CentOS] Grep: show me this line and the next N lines?

2011-05-30 Thread Dotan Cohen
Can grep show the matching lines and the next N lines after a match? For instance, I have a config file wit hthe following text: [Tag h1] foreground=#2e5a03 underline=double indent=0 weight=PANGO_WEIGHT_BOLD scale=2.25 I would ideally grep on "[Tag h1]" and have grep display the match and the next

Re: [CentOS] Grep: show me this line and the next N lines?

2011-05-30 Thread Pintér Tibor
On 05/30/2011 11:08 PM, Dotan Cohen wrote: > Can grep show the matching lines and the next N lines after a match? > For instance, I have a config file wit hthe following text: > [Tag h1] > foreground=#2e5a03 > underline=double > indent=0 > weight=PANGO_WEIGHT_BOLD > scale=2.25 > > I would ideally

Re: [CentOS] Grep: show me this line and the next N lines?

2011-05-30 Thread Ljubomir Ljubojevic
Dotan Cohen wrote: > Can grep show the matching lines and the next N lines after a match? > For instance, I have a config file wit hthe following text: > [Tag h1] > foreground=#2e5a03 > underline=double > indent=0 > weight=PANGO_WEIGHT_BOLD > scale=2.25 > > I would ideally grep on "[Tag h1]" and h

Re: [CentOS] Grep: show me this line and the next N lines?

2011-05-30 Thread Meenoo Shivdasani
On Mon, May 30, 2011 at 5:08 PM, Dotan Cohen wrote: > Can grep show the matching lines and the next N lines after a match? > > I would ideally grep on "[Tag h1]" and have grep display the match and > the next 5 lines so that I see all the content of the h1 section. > Try grep -A 5 pattern fil

Re: [CentOS] Grep: show me this line and the next N lines?

2011-05-30 Thread John R. Dennison
On Tue, May 31, 2011 at 12:08:37AM +0300, Dotan Cohen wrote: > > Can this be done? "man grep" - I think you will be surprised when you take a look at it. John -- Worrying works. About 90% of the things I worry about never happen. -- W

Re: [CentOS] scheduling differences between CentOS 4 and CentOS 5?

2011-05-30 Thread Matt Garman
On Tue, May 24, 2011 at 02:22:12PM -0400, R P Herrold wrote: > On Mon, 23 May 2011, Mag Gam wrote: > > > I would like to confirm Matt's claim. I too experienced larger > > latencies with Centos 5.x compared to 4.x. My application is very > > network sensitive and its easy to prove using lat_tcp. >

Re: [CentOS] Grep: show me this line and the next N lines?

2011-05-30 Thread Dotan Cohen
Thanks, all. I did actually look at the grep manpage but after a few screenfuls it became tl;dr and I started just skimming. I suppose that I skimmed too fast! Thanks! -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ CentOS mailing li

Re: [CentOS] Getting the return value of the last command run

2011-05-30 Thread fred smith
On Mon, May 30, 2011 at 05:38:56PM +0300, Dotan Cohen wrote: > All commands return a value, usually 0 if run properly. For instance, try: > $ ls && echo "done" > $ lsd && echo "done" > > The echo command is only executed if the ls command exited > successfully. If one did not add the echo command

Re: [CentOS] Getting the return value of the last command run

2011-05-30 Thread Dotan Cohen
On Tue, May 31, 2011 at 01:14, fred smith wrote: > Yes, all commands return a value UNLESS it was written by one of the > idi,... er, misguided programmers who thinks its ok to write (in > C): > > void main (void) >        { >        ... >        exit(); >        } > > because, of course, in C mai

Re: [CentOS] Grep: show me this line and the next N lines?

2011-05-30 Thread John R. Dennison
On Tue, May 31, 2011 at 01:10:40AM +0300, Dotan Cohen wrote: > Thanks, all. I did actually look at the grep manpage but after a few > screenfuls it became tl;dr and I started just skimming. I suppose that > I skimmed too fast! Um It's the first option described.

Re: [CentOS] BIND9 - automatic zone definition replication to slave

2011-05-30 Thread Nicolas Ross
> I have simple question - is there a way to automatically replicate zone > definition (not zone itself - this is easy) to slave server using BIND9? Is > it BIND built-in or are there prebuilt scripts? Or I have to write that > script on my own (started by Cron, transfer file with zone names, c

Re: [CentOS] Getting the return value of the last command run

2011-05-30 Thread Robert Nichols
On 05/30/2011 05:14 PM, fred smith wrote: > Yes, all commands return a value UNLESS it was written by one of the > idi,... er, misguided programmers who thinks its ok to write (in > C): > > void main (void) > { > ... > exit(); > } > > because, of course, in C main() always r

[CentOS] Unable to mount Centos 5.6 Server via nfs4 - Operation Not Permitted - MADNESS!

2011-05-30 Thread RILINDO FOSTER
After getting a reasonably configured NFS4 setup working on my Scientific Linux server, I spent a majority of my evening trying to do the same with my Centos 5 box, with fruitless results. Most attempts to mount that server returns the following message: [root@sl01 log]# mount -t nfs4 192.168.1

Re: [CentOS] Unable to mount Centos 5.6 Server via nfs4 - Operation Not Permitted - MADNESS!

2011-05-30 Thread Tom H
On Mon, May 30, 2011 at 9:31 PM, RILINDO FOSTER wrote: > > After getting a reasonably configured NFS4 setup working on my Scientific > Linux > server, I spent a majority of my evening trying to do the same with my Centos > 5 > box, with fruitless results. Most attempts to mount that server retur

Re: [CentOS] Unable to mount Centos 5.6 Server via nfs4 - Operation Not Permitted - MADNESS!

2011-05-30 Thread RILINDO FOSTER
I can try to play around with the idmapd.conf and set the fsid=0 option. What bugs me, though, is that neither option is enabled on the SL6/RHES6 server and I am able to mount via nfs4: [root@centos sysconfig]# nfsstat Server rpc stats: calls badcalls badauthbadclntxdrcall 154