Re: [CentOS] Shell Scripting Random Delay

2013-05-15 Thread Thomas Johansson
On 2013-05-15 17:44, Matt wrote: > I have a shell script that's run every 5 minutes I use to call many > other shell scripts. Is there a way to wait a random number of > seconds before executing each line? Something like this. > > wait_random 10 - 180 (perl /scripts/my_script.pl) & > wait_random

Re: [CentOS] Deleting Files

2012-06-20 Thread Thomas Johansson
On 2012-06-20 02:11, Diego Sanchez wrote: > find /whe/re -mtime +2 -exec echo {} \; > > If you get "Argument list too long" error, you can use > > find . -name "*" -print | xargs rm > Be very careful using that line! If you have files or directories with whitespace or other special items in the

Re: [CentOS] Having less languages in Firefox (hunspell dictionaries provide too many locales)

2011-11-21 Thread Thomas Johansson
On 2011-11-21 13:43, Mathieu Baudier wrote: > Hello, > > on CentOS 6, I am routinely writing mails in English, German and > French and using the related hunspell dictionaries for the spelling in > Firefox (I'm using Google Apps). > > This works fine but the problem is that languages are added for a

Re: [CentOS] Redhat vs centos vs ubuntu

2011-11-10 Thread Thomas Johansson
On 2011-11-10 17:07, Ljubomir Ljubojevic wrote: > Vreme: 11/10/2011 04:30 PM, Scott Robbins piše: >> Well, Fedora is going to systemd, which seems more designed for >> desktop/laptop users, where speed of a boot seems to be the most >> important goal, so I suspect RH will get there too. > > systemd

Re: [CentOS] replace multiple string

2011-09-23 Thread Thomas Johansson
On 2011-09-23 19:47, madu...@gmail.com wrote: > Hi > > > I would like to use a bash script that searches files and > subdirectories name in a directory /var/ww/html/web > for a specific string, and when it finds the search string, replaces > the string (old1) with new string (new1), and so on > old

Re: [CentOS] disk duplication question

2011-09-09 Thread Thomas Johansson
On 2011-09-09 14:22, Jerry Geis wrote: >I have need to duplicate centos 6 on 133 computers. > I purchased a disk duplicator make my master and the duplicator does 11 > at a time. > > All is good so far... > > When I take a duplicated disk and stick it in the "new" box which is > different than

Re: [CentOS] grabbing ip address from kickstart pre

2011-08-15 Thread Thomas Johansson
On 2011-08-15 09:06, Keith Roberts wrote: > > Is there some way to find out exactly what tools are > available for use in the %pre section please? > http://linuxtopia.org/online_books/rhel6/rhel_6_installation/rhel_6_installation_s1-redhat-config-kickstart-prescript.html /THomas

Re: [CentOS] {Disarmed} Kickstart installation error

2011-08-14 Thread Thomas Johansson
On 2011-08-14 19:49, Anshul Chauhan wrote: > Hi, > > I’m trying kickstart on CentOS > > > : > class "pxeclients" { > match if substring(option vendor-class-identifier, 0, 9) = "PXEClient"; > next-server 192.168.0.1; > filename "linux-install/pxelinux.0"; > } > > *FTP server showing ks file access

Re: [CentOS] grabbing ip address from kickstart pre

2011-08-14 Thread Thomas Johansson
On 2011-08-13 04:26, Jerry Geis wrote: > I can get the kickstart command line with /proc/cmdline > > it looks something like x ks=http://192.168.1.8/ks/ks.cfg xx > in the %pre sections of my ks.cfg I was wanting to extract the IP from > the ks= part. > I was going to utilize the "tr" comma

Re: [CentOS] compiling buoh comic reader for C-6

2011-08-06 Thread Thomas Johansson
On 2011-08-06 04:01, fred smith wrote: > Hi all! > > I'm trying to build the buoh comic reader for centos 6 and my head is > getting tired of repeated forceful contact with the wall. > > The configure script refuses to deal with libsoup-2.4. so I look at what > pkgconfig thinks the installed libsou

Re: [CentOS] compiling buoh comic reader for C-6

2011-08-06 Thread Thomas Johansson
On 2011-08-06 04:01, fred smith wrote: > Hi all! > > I'm trying to build the buoh comic reader for centos 6 and my head is > getting tired of repeated forceful contact with the wall. > > : > The configure script refuses to deal with libsoup-2.4. so I look at what > pkgconfig thinks the installed

Re: [CentOS] disable control alt delete in gnome

2011-08-05 Thread Thomas Johansson
On 2011-08-05 16:30, Jerry Geis wrote: >> >> have you tried gconf-editor. it works on centos 5. >> >> or you can try to edit the keyboard shortcut in system> preferences> >> keyboard shortcuts >> >> > Janez, > > I have looked at gconf-editor and cant find it. > Is this what you are looking for?

Re: [CentOS] perl-Nagios-Plugin-0.35-1.el5.rf.noarch from rpmforge: dependency problem

2011-07-31 Thread Thomas Johansson
On 2011-07-31 19:51, Dirk wrote: > > I have a problem with updating the perl-Nagios-Plugin package. I have > installed perl-Nagios-Plugin-0.33-1.el6.rf.noarch, and running yum > update leads to: > >> Error: Package: perl-Nagios-Plugin-0.35-1.el6.rf.noarch (rpmforge) >> Requires: /usr/lo

Re: [CentOS] perl-Nagios-Plugin-0.35-1.el5.rf.noarch from rpmforge: dependency problem

2011-07-31 Thread Thomas Johansson
On 2011-07-31 19:51, Dirk wrote: > Hi folks, > > I hope this is the right mailing list to ask since on the repoforge > website there is no list or contact information. > Try http://lists.repoforge.org/mailman/listinfo /Thomas ___ CentOS mailing list Ce

[CentOS] Problem with /etc/security/console.perms.d/51-local.perms

2011-07-26 Thread Thomas Johansson
I'm having trouble to get rules in /etc/security/console.perms.d to work properly. I have found no clue reading forums. The same problem appear also in Scientific Linux6 and Fedora13/14. The rule i add works fine on centos 5. hostname:/etc/security/console.perms.d# ls -l total 4 -rw-r--r-- 1 ro

Re: [CentOS] [CentOS 6] what really starts x11

2011-07-25 Thread Thomas Johansson
On 2011-07-25 22:37, Jerry Geis wrote: > prefdm is respawning too fast Most likely Xorg is crashing. You are in runlevel 5, therefor prefdm continues to try and respawn. Check the log in /var/log/Xorg.0.log and then correct what's wrong. Could be dr5iver issue. __

Re: [CentOS] problems with burning i386 centos 6 dvd

2011-07-11 Thread Thomas Johansson
On 2011-07-11 22:47, Gary Gatling wrote: > > Hey guys, > > Thanks a lot for the CentOS 6 distro. I am having trouble burning the i386 > dvds. I tried on a RHEL 6 deskop and also a CentOS 5 laptop. The command I > am running on both systems is this: > > growisofs -dvd-compat -speed=4 -Z > /dev/sr0=/

Re: [CentOS] Clonezilla SE with CentOS5

2009-03-09 Thread Thomas Johansson
Sorin Srbu wrote: > Hi all, > > I'm looking for a cloning solution for our Windows/Linux/*nix computer park > and ran into Clonezilla. Apparantely the DRBL and other documentation > mentions CentOS as a suitable base for it. > > Does anybody on this list use this solution and can say something abou

Re: [CentOS] Kerberos 1.6.3 on centos 4/5??

2009-02-28 Thread Thomas Johansson
Stephen John Smoogen wrote: > On Fri, Feb 27, 2009 at 12:27 PM, Thomas Johansson wrote: > >> Stephen John Smoogen wrote: >> >>> On Fri, Feb 27, 2009 at 5:03 AM, Thomas Johansson >>> wrote: >>> >>> >>>> Hi >>

Re: [CentOS] Kerberos 1.6.3 on centos 4/5??

2009-02-27 Thread Thomas Johansson
Stephen John Smoogen wrote: > On Fri, Feb 27, 2009 at 5:03 AM, Thomas Johansson wrote: > >> Hi >> >> My problem is related to clientless authentication for printing. We are >> evaluating if it's worth the trouble on centos. Uppgrading cups is not a &g

[CentOS] Kerberos 1.6.3 on centos 4/5??

2009-02-27 Thread Thomas Johansson
Hi My problem is related to clientless authentication for printing. We are evaluating if it's worth the trouble on centos. Uppgrading cups is not a problem That i have already solved. Further research also states that kerberos have to be version 1.6.3. This is a big problem. Neither centos 4 n

Re: [CentOS] Trouble using date function in centos

2008-10-05 Thread Thomas Johansson
Stephen Harris wrote: On Sat, Oct 04, 2008 at 09:48:28PM +0200, Thomas Johansson wrote: Is there someone that can explain why I get incorrect results on centos 4.6 and 4.7 but not on centos 5.2?? test000:/% date -d "2008-10-25 +1 days" "+%Y-%m-%d" 2008-10-26 test000:/% da

[CentOS] Trouble using date function in centos

2008-10-04 Thread Thomas Johansson
Is there someone that can explain why I get incorrect results on centos 4.6 and 4.7 but not on centos 5.2?? The date "2008-10-26 +1 days" should results in 2008-10-27 On centos 4.6 -- test000:/% date -d "2008-10-25 +1 days" "+%Y-%m-%d" 2008-10-26 test000:/% date -d "2008-10-26 +1 da

[CentOS] Help using ed [OT]

2008-08-31 Thread Thomas Johansson
Hi Perhaps omeone might answer this tricky problem. I can do this other ways, but i really want to understand how to solve it using ed. I have one solution using g/re/s/re//txt/ , but I want to understand how or if i can solve it using the ed (.)a command. A script i have parse several files

Re: [CentOS] another sed question...

2008-05-30 Thread Thomas Johansson
Craig White wrote: On Fri, 2008-05-30 at 20:26 +0200, Thomas Johansson wrote: Craig White wrote: Looking to change a yml file (yaml is a database type file) *** from --- !ruby/object:Right attributes: name: Personnel Admin action: index id: "1" controller: assessments

Re: [CentOS] another sed question...

2008-05-30 Thread Thomas Johansson
Craig White wrote: Looking to change a yml file (yaml is a database type file) *** from --- !ruby/object:Right attributes: name: Personnel Admin action: index id: "1" controller: assessments --- !ruby/object:Right attributes: name: Personnel Admin action: find id: "2" cont

Re: [CentOS] sed

2008-05-23 Thread Thomas Johansson
Stephen Harris wrote: On Fri, May 23, 2008 at 06:02:29PM +0200, Mihai T. Lazarescu wrote: On Fri, May 23, 2008 at 08:41:19AM -0700, Scott McClanahan wrote: 1.1.1.1foo 10.10.10.10bar bar2 100.100.100.100foobar foobar2 foobar3 == After == 1.1.1.1