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] Sorting by date

2011-02-28 Thread Bob Beers
On Mon, Feb 28, 2011 at 3:35 PM, erikmccaskey64 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 http://lists.centos.org/mailman/list

Re: [CentOS] iptables nat table rules

2011-02-08 Thread Bob Beers
On Tue, Feb 8, 2011 at 1:36 PM, Carlos S 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 /etc/sysconfig/iptables.

Re: [CentOS] Unable to connect to wireless network

2011-02-04 Thread Bob Beers
On Fri, Feb 4, 2011 at 11:15 AM, Jatin 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 guide me on how

Re: [CentOS] libsrtp package anywhere?

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

Re: [CentOS] libsrtp package anywhere?

2011-01-26 Thread Bob Beers
On Wed, Jan 26, 2011 at 11:04 AM, JohnS 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 completeness,

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: l

Re: [CentOS] libsrtp package anywhere?

2011-01-26 Thread Bob Beers
On Wed, Jan 26, 2011 at 9:38 AM, JohnS 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 f

Re: [CentOS] libsrtp package anywhere?

2011-01-25 Thread Bob Beers
ig/libsrtp.pc Processing files: libsrtp-debuginfo-1.4.4-2.20101004cvs.el5 Checking for unpackaged file(s): /usr/lib/rpm/check-files %{buildroot} RPM build errors: Bad exit status from /var/tmp/rpm-tmp.96791 (%doc) File not found: /usr/share/doc/libsrtp-1.4.4 File not found: /usr/l

Re: [CentOS] Binding rsyslogd to specific ip address

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

Re: [CentOS] Binding rsyslogd to specific ip address

2010-12-14 Thread Bob Beers
On Tue, Dec 14, 2010 at 9:16 AM, carlopmart 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 8:22 AM, carlopmart 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] Determine next UID number

2010-10-13 Thread Bob Beers
On Wed, Oct 13, 2010 at 4:15 PM, John Kennedy 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 __

Re: [CentOS] libsrtp package anywhere?

2010-10-12 Thread Bob Beers
.4.4-1orc.x86_64.rpm > /home/herrold/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

[CentOS] libsrtp package anywhere?

2010-10-12 Thread Bob Beers
ce is here, <http://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] [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 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 >> wrote: >> >>This seems like duplication of effort with the CentOS people, since they >> >>already package DRBD for CentOS 5.x (and i

Re: [CentOS] script question

2010-06-11 Thread Bob Beers
On Fri, Jun 11, 2010 at 10:04 AM, Jerry Geis 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 dashes d

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 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 } ' /home/pr

Re: [CentOS] Simplifying making a USB install key

2010-04-30 Thread Bob Beers
On Fri, Apr 30, 2010 at 11:03 AM, 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
en better. I >> guess my other option would be a iPad. >> >> -- >> Pascal Robert IMO, this sounds like 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

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

2010-03-04 Thread Bob Beers
The source 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] [Possibly OT] rpm conflicts has me confused

2010-03-04 Thread Bob Beers
-cleanup --dupes 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 mai

Re: [CentOS] Bandwith limiting

2010-02-26 Thread Bob Beers
ols/traffic-control.php> [2] <http://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
On Wed, Jan 20, 2010 at 2:20 PM, Bob Beers 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://ww

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 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, or with &

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 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

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 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 completely all I have to

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 Moskowitz 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 installed it and we

Re: [CentOS] Bash Help

2009-08-17 Thread Bob Beers
On Mon, Aug 17, 2009 at 10:01 AM, Joseph L. Casale wrote: > I am trying to write a script that can pass cmd line args into an > executable it runs, I need at least 4 args, but I need to pass the rest > to it in the script if they exist. > > $@ doesn't help because I use the 1st and 2nd etc, so how

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 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 contents and the actu

Re: [CentOS] wan hdlc_ppp and IPv6

2009-06-30 Thread Bob Beers
On Tue, Jun 30, 2009 at 2:56 PM, Filipe Brandenburger wrote: > Hi, > > On Tue, Jun 30, 2009 at 14:24, Bob Beers 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. &

[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 back

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 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] Get only script name with shell script

2009-04-24 Thread Bob Beers
On Fri, Apr 24, 2009 at 2:35 PM, Semih Gokalp wrote: > Hi all, > > I wrote shell script and put it under the /usr/local/bin/ directory. > > I use echo $0 for get script name but it has printed > "/usr/local/bin/" but  i want to only print > > How can i do this ? > man basename __

Re: [CentOS] network interface

2008-12-23 Thread Bob Beers
On Tue, Dec 23, 2008 at 4:19 PM, adrian kok 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 http://lists.centos.org/mailman/listin

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 --

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 : /etc/group | cut -d: -f4 >> >> will give a comma separated list, provided is a valid group >> name. >> >> > There is one problem with t

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 separati

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 | a

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 : /etc/group | cut -d: -f4 w

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 . HTH, -Bob ___ CentOS mailing list CentOS@centos.org http://lists.

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 sp

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 http://lists.centos.org/

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. >

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 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

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 >> >> Than

Re: [CentOS] Edit to change startup from SMP to not so SMP

2008-04-17 Thread Bob Beers
On Thu, Apr 17, 2008 at 3:31 PM, Andrew @ ATM Logic <[EMAIL PROTECTED]> wrote: > > Humm, ok but for some reason it does not start the top, or any one, it just > sits waiting for someone to manually hit enter on one of them Any > thoughts on that?> Are you certain that this is the right gr

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

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

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 i

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] 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

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 a

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, >

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" >ModelName"Monitor 1280x1024" > ### Comment all HorizSync and VertS

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: da

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

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

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 http://lists.centos