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 dotanco...@gmail.com 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] Sorting by date

2011-02-28 Thread Bob Beers
On Mon, Feb 28, 2011 at 3:35 PM, erikmccaskey64 erikmccaske...@zoho.com wrote: How could I get the output where the newest file is at the top? man ls, -t sort by modification time HTH, ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] iptables nat table rules

2011-02-08 Thread Bob Beers
On Tue, Feb 8, 2011 at 1:36 PM, Carlos S neu...@gmail.com wrote: I am forwarding traffic on port 8080 to port 80 with following rule. # iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 8080 -j REDIRECT --to-port 80 # iptables-save However, I am unable to add it directly in

Re: [CentOS] Unable to connect to wireless network

2011-02-04 Thread Bob Beers
On Fri, Feb 4, 2011 at 11:15 AM, Jatin daveyja...@gmail.com wrote: Hi CentOS users Hi Jatin I just installed the CentOS 5.5 version on my toshiba laptop. I did the configuration that i had for the wireless settings but still i could not connect to my home wireless network. So someone please

Re: [CentOS] libsrtp package anywhere?

2011-01-26 Thread Bob Beers
On Wed, Jan 26, 2011 at 9:38 AM, JohnS jse...@gmail.com wrote: Hi John, Thanks for the response! On Tue, 2011-01-25 at 17:07 -0500, Bob Beers wrote: It's your build environment that's the problem.  They build for el5. Clean out your build root and recreate it and do a fresh .rpmmacros

Re: [CentOS] libsrtp package anywhere?

2011-01-26 Thread Bob Beers
LOL, looks like our messages crossed in the ether, I applied a patch very similar to your suggestion: $ diff -pub libsrtp.spec libsrtp.spec.el5 --- libsrtp.spec2010-12-06 11:13:59.0 -0500 +++ libsrtp.spec.el52011-01-26 11:11:45.0 -0500 @@ -18,6 +18,8 @@ Source1:

Re: [CentOS] libsrtp package anywhere?

2011-01-26 Thread Bob Beers
On Wed, Jan 26, 2011 at 11:04 AM, JohnS jse...@gmail.com wrote: On Wed, 2011-01-26 at 11:02 -0500, JohnS wrote: The problem is RPM is trying to install into the main file system whereas el5 rpm does not need an incantation like so. I mean el6 sorry.. John Yep, that make sense. For

Re: [CentOS] libsrtp package anywhere?

2011-01-26 Thread Bob Beers
On Wed, Jan 26, 2011 at 1:24 PM, JohnS jse...@gmail.com wrote: On Wed, 2011-01-26 at 11:35 -0500, Bob Beers wrote: On Wed, Jan 26, 2011 at 11:04 AM, JohnS jse...@gmail.com wrote: +rm -rf %{buildroot} Now I know you rebuild it more than one time instead of once. Well, it is recommended

Re: [CentOS] libsrtp package anywhere?

2011-01-25 Thread Bob Beers
can't seem to find out where the DOCDIR is specified. I have opened an issue at RHN, but I'd be delighted to get it figured out sooner rather than later. Thanks for any help. -- -Bob Beers ___ CentOS mailing list CentOS@centos.org http

Re: [CentOS] Binding rsyslogd to specific ip address

2010-12-14 Thread Bob Beers
On Tue, Dec 14, 2010 at 8:22 AM, carlopmart carlopm...@gmail.com wrote: Hi all,  Somebody knows how can I bind rsyslogd to a specific ip adress?? I have two different interfaces on a centos5.5 host and I need to bind rsyslog to only one. Hi CL, I looked here:

Re: [CentOS] Binding rsyslogd to specific ip address

2010-12-14 Thread Bob Beers
On Tue, Dec 14, 2010 at 9:16 AM, carlopmart carlopm...@gmail.com wrote: Oops sorry. I prefer to bind via tcp port, if it is possible... is it? I guess so ... you couldn't reach the links I provided? Try in rsyslog.conf: $ModLoad imtcp $TCPServerAddress 192.0.2.1 $InputTCPServerRun 514 -Bob

Re: [CentOS] Binding rsyslogd to specific ip address

2010-12-14 Thread Bob Beers
On Tue, Dec 14, 2010 at 10:23 AM, carlopmart carlopm...@gmail.com wrote: On 12/14/2010 04:01 PM, Bob Beers wrote: On Tue, Dec 14, 2010 at 9:16 AM, carlopmartcarlopm...@gmail.com  wrote: Oops sorry. I prefer to bind via tcp port, if it is possible... is it? I guess so ... you couldn't reach

Re: [CentOS] Determine next UID number

2010-10-13 Thread Bob Beers
On Wed, Oct 13, 2010 at 4:15 PM, John Kennedy skeb...@gmail.com wrote: I am more looking at what the system thinks is the next UID. Does the useradd command use this when it assigns the next UID? what about ... # useradd nextid; id -u nextid; userdel nextid -Bob

[CentOS] libsrtp package anywhere?

2010-10-12 Thread Bob Beers
://srtp.sourceforge.net/download.html. Has this already been packaged for CentOS 5? Thanks, -Bob Beers ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] libsrtp package anywhere?

2010-10-12 Thread Bob Beers
/rpmbuild/RPMS/x86_64/srtp-static-1.4.4-1orc.x86_64.rpm /home/herrold/rpmbuild/RPMS/x86_64/srtp-devel-1.4.4-1orc.x86_64.rpm Awesome! Thanks, -Bob Beers ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] [DRBD-user] Kernel independent DRBD packages for RHEL, CentOS and Scientific Linux

2010-06-22 Thread Bob Beers
On Tue, Jun 22, 2010 at 9:03 AM, JohnS jse...@gmail.com wrote: On Mon, 2010-06-21 at 17:11 +0200, Ralph Angenendt wrote: On Mon, Jun 21, 2010 at 12:54 PM, Joseph L. Casale jcas...@activenetwerx.com wrote: This seems like duplication of effort with the CentOS people, since they already

Re: [CentOS] script question

2010-06-11 Thread Bob Beers
On Fri, Jun 11, 2010 at 10:04 AM, Jerry Geis ge...@pagestation.com wrote: Hi all, in a script if I have: VERSION=3.2.0 I can do: echo jj-$VERSION-jj and get jj-3.2.0-jj however if I do: echo jj_$VERSION_jj I get jj_ How do I get the $VERSION to work with the underscores like the

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread Bob Beers
On Tue, May 25, 2010 at 9:42 AM, Les Mikesell lesmikes...@gmail.com wrote: Bowie Bailey wrote: Jatin Davey wrote: Here is the script that i am trying to execute as a non-root user: #!/bin/sh ps -C java -o thcount /home/proc_threads/tempfile awk ' { total += $1 } END { print total } '

Re: [CentOS] Simplifying making a USB install key

2010-04-30 Thread Bob Beers
On Fri, Apr 30, 2010 at 11:03 AM, m.r...@5-cent.us wrote: Ok, where/how do I submit this to the CentOS project? Here's a complete script - anyone, *please* feel free to test it, and let me know if I've missed anything. Thanks in advance.        mark #!/bin/bash #

Re: [CentOS] [OT] Small touch screens that works with CentOS

2010-03-19 Thread Bob Beers
an ideal application for a rooted^h^h^h^h^h^h re-purposed nook. -- -Bob Beers ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] [Possibly OT] rpm conflicts has me confused

2010-03-04 Thread Bob Beers
rpm -Va --nofiles --nodigest and I tried each of those, but no joy. Is this an rpm bug, a checkinstall bug, or PEBKAC (problem exists between keyboard and chair)? thanks, -Bob Beers ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] [Possibly OT] rpm conflicts has me confused

2010-03-04 Thread Bob Beers
is here[1], if anyone else wants to try. [1] ftp://ftp.sangoma.com/linux/utilities/ppp-2.4.4.5.tgz And this[2] is where they explain why you need their version: [2] http://wiki.sangoma.com/wanpipe-multilink-ppp -- thanks, -Bob Beers ___ CentOS mailing

Re: [CentOS] Bandwith limiting

2010-02-26 Thread Bob Beers
://tcng.sourceforge.net/ -- HTH, -Bob Beers ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] routing multiple network cards on a single subnet

2010-01-20 Thread Bob Beers
I can offer one tiny bit of help ... On Wed, Jan 20, 2010 at 11:27 AM, Frank Cox thea...@sasktel.net wrote: Incidentally, it is my current understanding that anything that I do with an ip route command will go away on a reboot, therefore if I somehow screw up the routing on this box

Re: [CentOS] routing multiple network cards on a single subnet

2010-01-20 Thread Bob Beers
On Wed, Jan 20, 2010 at 11:53 AM, Frank Cox thea...@sasktel.net wrote: On Wed, 2010-01-20 at 11:33 -0500, Bob Beers wrote: man iptables-save That would dump the table to a file, but what would I do with the file after that?  I imagine there is a way to feed that back into the ip command

Re: [CentOS] routing multiple network cards on a single subnet

2010-01-20 Thread Bob Beers
On Wed, Jan 20, 2010 at 1:52 PM, Bob Beers bob.be...@gmail.com wrote: You can save your ip route commands in the /etc/sysconfig/network-scripts/ directory  files for each interface route-ethX.  They will then be automatically called when the  interface is brought up on reboot

Re: [CentOS] routing multiple network cards on a single subnet

2010-01-20 Thread Bob Beers
On Wed, Jan 20, 2010 at 2:20 PM, Bob Beers bob.be...@gmail.com wrote: here's a link to a more thorough explanation: http://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html ok, last word from me on the subject, really, http://www.redhat.com/docs/en-US

Re: [CentOS] Bypass Hung Applications At Boot So System Can Complete The Boot Process

2009-10-23 Thread Bob Beers
to begin Interactive mode. From there, you can pick and choose which services/daemons to turn on. HTH, -Bob Beers ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Terminal emulation and serial ports

2009-08-25 Thread Bob Beers
On Tue, Aug 25, 2009 at 9:34 AM, Robert Moskowitzr...@htt-consult.com wrote: I have to reinit a firewall that can only be done from its console port, and I do not have an XP system with Hyperterminal on it. So I went through the archive and learned that minicom could do the job for me.  I

Re: [CentOS] Multiple Internet facing Nics - Gateway issue

2009-07-03 Thread Bob Beers
On Fri, Jul 3, 2009 at 1:40 PM, Doug Coats dcoats...@gmail.com wrote: Adding the routes and rules to the appropriate files in network-scripts did not work. It gave me a number of errors and did not create the rules after reboot or/and network restart. You will have to show the file

[CentOS] wan hdlc_ppp and IPv6

2009-06-30 Thread Bob Beers
Hi list, I can successfully build the driver modules; hdlc, dlci, syncppp, and lmc from the 2.6.18-128.1.14 kernel source rpm, and have managed to create a 'wan kmod' rpm. It all works fine for IPv4, but now I need IPv6 for ppp connections, which doesn't work for me. I think I'll need to

Re: [CentOS] wan hdlc_ppp and IPv6

2009-06-30 Thread Bob Beers
On Tue, Jun 30, 2009 at 2:56 PM, Filipe Brandenburger filbran...@gmail.comwrote: Hi, On Tue, Jun 30, 2009 at 14:24, Bob Beersbob.be...@gmail.com wrote: I think I'll need to back port Krzysztof Halasa's 'ppp for generic hdlc' patches to the 2.6.18-128.1.14.el5 kernel sources. Has

Re: [CentOS] Shell Script: Simple array usage = bad substitution?

2009-06-19 Thread Bob Beers
On Fri, Jun 19, 2009 at 8:43 AM, James Bensley jwbens...@gmail.com wrote: Hey Guys n Gals; I have some arrays that I can't seem to expand correctly (if that's the correct word?), imagine the following example: #!/bin/bash myArray=(First Second Third) First=(Monday Tuesdays Wednesday)

Re: [CentOS] network interface

2008-12-23 Thread Bob Beers
On Tue, Dec 23, 2008 at 4:19 PM, adrian kok adriankok2...@yahoo.com.hk wrote: Hi all How can I bring up eth0:2 only ifconfig eth0:2 up is not working wouldn't it be 'ifup eth0:2' ? -Bob ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] command line escaping a dash

2008-10-20 Thread Bob Beers
On Mon, Oct 20, 2008 at 11:04 AM, Craig White [EMAIL PROTECTED] wrote: I cannot figure this out... I would like to change the owner of a bunch of folders whose name begins with a dash... # chown Administrator \-BILLED\ JOBS\ -\ 1997-2002 -R chown: invalid option -- B Try `chown --help' for

Re: [CentOS] Shell script to list group members

2008-09-24 Thread Bob Beers
Part 1: On Tue, Sep 23, 2008 at 7:37 PM, Ian Blackwell [EMAIL PROTECTED] wrote: Bob Beers wrote: grep group_name: /etc/group | cut -d: -f4 will give a comma separated list, provided group_name is a valid group name. There is one problem with this approach, which is the assumption

Re: [CentOS] Getting perl CGI programs to work on CentOS 5 server

2008-09-23 Thread Bob Beers
Check your web server logs to find out what went wrong. Thanks everybody, but I still can't find the server log(s)! I've looked at /etc/httpd/conf/httpd.conf and it says the following about location of the error log: # ErrorLog: The location of the error log file. # If you do not specify an

Re: [CentOS] Centos Kernel 4.7 Compile Help

2008-09-23 Thread Bob Beers
On Tue, Sep 23, 2008 at 10:26 AM, Steve Moccio [EMAIL PROTECTED] wrote: Is this not the right procedure for patching the kernel? No, see http://wiki.centos.org/HowTos/Custom_Kernel. HTH, -Bob ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] Shell script to list group members

2008-09-23 Thread Bob Beers
On Tue, Sep 23, 2008 at 1:31 PM, Tim Alberts [EMAIL PROTECTED] wrote: So essentially, I am looking for a (simple) shell command to run from a bash script that will allow me to list user accounts that belong to a particular group. Any help is appreciated. grep group_name: /etc/group | cut -d:

Re: [CentOS] Shell script to list group members

2008-09-23 Thread Bob Beers
On Tue, Sep 23, 2008 at 7:11 PM, Tim Alberts [EMAIL PROTECTED] wrote: Barry Brimer wrote: With spaces separating groups: egrep -e '^groupname:' /etc/group | awk -F : '{ print $4 }' | sed -e 's/,/ /g' With commas separating groups: egrep -e '^groupname:' /etc/group | awk -F : '{ print $4

Re: [CentOS] Shell script to list group members

2008-09-23 Thread Bob Beers
On Tue, Sep 23, 2008 at 7:26 PM, Barry Brimer [EMAIL PROTECTED] wrote: Quoting Tim Alberts [EMAIL PROTECTED]: Barry Brimer wrote: With spaces separating groups: egrep -e '^groupname:' /etc/group | awk -F : '{ print $4 }' | sed -e 's/,/ /g' With commas separating groups: egrep -e

Re: [CentOS] USB DVD drive disappearing during kickstart install.

2008-09-18 Thread Bob Beers
On Thu, Sep 18, 2008 at 10:24 AM, Alex Tang [EMAIL PROTECTED] wrote: Thanks John. I'll check the BIOS on these machines. Unfortunately, i need the DVD based setup to work because sometimes i have to do this at odd places where i don't have the network infrastructure to do PXE boots. What

Re: [CentOS] link speed

2008-09-18 Thread Bob Beers
On Thu, Sep 18, 2008 at 2:28 PM, Craig White [EMAIL PROTECTED] wrote: Is there a command line way to tell me whether a ethernet connection is 100 BaseT or Gigabit Ethernet? ethtool? ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] Re: Is there a way to save the routing table permanently?

2008-08-19 Thread Bob Beers
IIANM, you can also use /etc/sysconfig/network-scripts/route-eth*, no? Take a look at /etc/sysconfig/network-scripts/ifup-routes script. -Bob ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] openldap package compilation flags?

2008-08-07 Thread Bob Beers
On Wed, Jul 16, 2008 at 6:30 PM, Johnny Hughes [EMAIL PROTECTED] wrote: tblader wrote: Hello All. How do I find out what flags were used to compile the Centos openldap-2.3.27-8.el5_2.4 rpm package? I'm specifically wondering if it was compiled with --enable-lmpasswd Thanks! If you

Re: [CentOS] openldap package compilation flags?

2008-08-07 Thread Bob Beers
On Thu, Aug 7, 2008 at 4:20 PM, Johnny Hughes [EMAIL PROTECTED] wrote: Bob Beers wrote: Slightly OT, but related to this question and answer, I'd like to know what options are used to build the openssh-4.3p2-26.el5 package. Fetching the SRPM and exploring in there I can see the %configure

Re: [CentOS] OT: get files with wget

2008-04-10 Thread Bob Beers
On Thu, Apr 10, 2008 at 7:39 AM, Frank Büttner [EMAIL PROTECTED] wrote: Sudev Barar schrieb: On 10/04/2008, Frank Büttner [EMAIL PROTECTED] wrote: Hello, how can I get all files from an directory of an web server. An simple wget http://www.foo.bar/sample/* will not work:(

Re: [CentOS] Centos 5.1 + beryl + 1440x900 -thanks!

2008-04-07 Thread Bob Beers
On Mon, Apr 7, 2008 at 12:50 PM, Masters IT Gmail [EMAIL PROTECTED] wrote: a graphic card mobile intel 945gm/gu express. I have problems too when I want to change resolution to 1440x900, the menu doesn't show that option the max is 1280 or something like that, well I you could open my eyes

Re: [CentOS] Strange behavior from grep

2008-03-28 Thread Bob Beers
On Fri, Mar 28, 2008 at 9:37 AM, Mário Gamito [EMAIL PROTECTED] wrote: Well, my question now is, how do I get the word 'gamito' alone from the file ? Any help would be appreciated. What are you really trying to do? grep 'gamito' file and grep -c 'gamito' file will tell you if it is

Re: [CentOS] internet search (not relate to Centos)

2008-03-10 Thread Bob Beers
On Mon, Mar 10, 2008 at 2:45 PM, Hiep Nguyen [EMAIL PROTECTED] wrote: hi all, i have a little problem and seek for your advice. search jade sterling on google, msn or any other, the return is: Offering surplus bar and rod, selling to the Forging Industry, CNC Machining Industry and Screw

Re: [CentOS] internet search (not relate to Centos)

2008-03-10 Thread Bob Beers
nevermind, obviously I misunderstood the question, sorry. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] GRabbing MAC address

2008-02-28 Thread Bob Beers
On Thu, Feb 28, 2008 at 8:47 AM, Jerry Geis [EMAIL PROTECTED] wrote: I am trying to grab the mac address for eth0 on centos 5.1 with ifconfig | grep eth0 | cut -d ' ' -f 5 and I dont get anything. What am I not doing right? ifconfig | grep eth0 | cut -d ' ' -f 1 gives me eth0 but anything

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Bob Beers
On Tue, Feb 26, 2008 at 10:11 AM, Benjamin Smith [EMAIL PROTECTED] wrote: In bash, given a string assignment as follows, how do I add slashes automagically, so that it can be safely passed to another program? Notice that the assignment contains spaces, single-quotes and double-quotes, maybe

Re: [CentOS] system-config-display wrongly sets up Viewsonic VG730m monitor

2008-02-18 Thread Bob Beers
On Feb 18, 2008 12:24 PM, Anne Wilson [EMAIL PROTECTED] wrote: Any advice, please? I am not an expert, but maybe ... ### Comment all HorizSync and VertSync values to use DDC: Identifier Monitor0 ModelNameMonitor 1280x1024 ### Comment all HorizSync and VertSync values

Re: [CentOS] Cron on certain days?

2008-01-28 Thread Bob Beers
On Jan 28, 2008 2:26 PM, Scott Ehrlich [EMAIL PROTECTED] wrote: Is it possible for me to schedule cron to say run script A on the first Friday of the month, script B on the second Friday of the month, script C, etc.? I think you can make cronjob run on every Friday, and in your script check

Re: [CentOS] Cron on certain days?

2008-01-28 Thread Bob Beers
Sloppy cut-n-paste error using -o, so this is obviously wrong ... day=`date +%d` if [ $day -ge 8 -o $day -le 14 ]; then echo '2nd Friday' # do F2 elif [ $day -ge 15 -o $day -le 21 ]; then echo '3rd Friday' # do F3 fi maybe something more like this: day=$(date +%d)

Re: [CentOS] screen locking - pam and xscreensaver

2008-01-16 Thread Bob Beers
On Jan 16, 2008 3:32 PM, Scott Ehrlich [EMAIL PROTECTED] wrote: If Xwindows was to be disabled, and only tty was used, what would be the best option for ensuring the logged-in session was locked after a determined amount of inactivity If logged in to bash, TMOUT is the (seconds) setting to

Re: [CentOS] CentOS-5 Need Help With Serial Ports

2007-12-21 Thread Bob Beers
On Dec 21, 2007 1:16 PM, James B. Byrne [EMAIL PROTECTED] wrote: When I run setserial -g ttyS* I get this: try setserial -g /dev/ttyS* BTW, what does dmesg | grep tty show? HTH, -Bob ___ CentOS mailing list CentOS@centos.org