Re: [CentOS] OT - Monitoring tool

2008-09-30 Thread Marcelo M. Garcia

Robert Spangler wrote:

Hello everyone,

While I know this isn't Centos related, you guys seems to be on top of your 
game around here.  Sorry for the off-topic.


I'm looking for a tool to monitor my servers and send either an email or page 
or both when something breaks.  I would like it to monitor all sorts of 
services on the servers with one small detail, I'd like it to be able to 
confiugre so if the DBA need something monitor that is hosted on a shared 
system that they can only change what they are responsible for and not 
something else that is being monitored on that system.


Is there such a program out there?


Hi

I have been using Nagios for monitoring the network and a few servers. 
It works fine. It's not the easiest thing to get it working properly.


Regards

M.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT - Monitoring tool

2008-09-30 Thread Finnur Örn Guðmundsson
> Robert Spangler wrote:
>> Hello everyone,
>>
>> While I know this isn't Centos related, you guys seems to be on top of
>> your
>> game around here.  Sorry for the off-topic.
>>
>> I'm looking for a tool to monitor my servers and send either an email or
>> page
>> or both when something breaks.  I would like it to monitor all sorts of
>> services on the servers with one small detail, I'd like it to be able to
>> confiugre so if the DBA need something monitor that is hosted on a
>> shared
>> system that they can only change what they are responsible for and not
>> something else that is being monitored on that system.
>>
>> Is there such a program out there?
>>
> Hi
>
> I have been using Nagios for monitoring the network and a few servers.
> It works fine. It's not the easiest thing to get it working properly.
>
> Regards
>
> M.
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
Hi,

+1 for Nagios. I am using it in a enviroment of 500+ servers without a hitch.

Bgrds,
Finnur

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT - Monitoring tool

2008-09-30 Thread Jim Wildman

On Tue, 30 Sep 2008, Marcelo M. Garcia wrote:



I have been using Nagios for monitoring the network and a few servers. It 
works fine. It's not the easiest thing to get it working properly.


Regards

M.


Have not tried it, but I snipped this for future use.

FAN Fully Automated Nagios (based on CentOS)

http://sourceforge.net/projects/fannagioscd

--
Jim Wildman, CISSP, RHCE   [EMAIL PROTECTED] http://www.rossberry.com
"Society in every state is a blessing, but Government, even in its best
state, is a necessary evil; in its worst state, an intolerable one."
Thomas Paine
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT - Monitoring tool

2008-09-30 Thread Marcelo M. Garcia

Jim Wildman wrote:

On Tue, 30 Sep 2008, Marcelo M. Garcia wrote:



I have been using Nagios for monitoring the network and a few servers. 
It works fine. It's not the easiest thing to get it working properly.


Regards

M.


Have not tried it, but I snipped this for future use.

FAN Fully Automated Nagios (based on CentOS)

http://sourceforge.net/projects/fannagioscd

--
Jim Wildman, CISSP, RHCE   [EMAIL PROTECTED] http://www.rossberry.com
"Society in every state is a blessing, but Government, even in its best
state, is a necessary evil; in its worst state, an intolerable one."
Thomas Paine
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Hi

Very interesting.

thanks for that.

Marcelo

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] vmcore

2008-09-30 Thread Mag Gam
I would like to analyze a kernel vmcore. Are there any docs you can
recommend for me to read to  understand the process?

TIA
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] setting timezone from kickstart

2008-09-30 Thread Jerry Geis

Hi all,

I used to do manual installs so I would set the timezone each time.
I have now migrated to kickstart and I wish to use a command line (at 
boot) parameter

to set the needed timezone.

I am familiar with timeconfig and that works. I tried timeconfig --help 
(looking for command line arguments)
and there appears to not be a command line way that I see to set the 
timezone.


I have seen mention of changing symbolic links and stuff - but I was 
hoping for
a system command to change the timezone. Like "timeconfig --zone Denver" 
or "timeconfig --zone Mountain"

something like that.

Is there something like that or do I have to use the symbolic links?

Thanks,

Jerry
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] setting timezone from kickstart

2008-09-30 Thread Joseph L. Casale
>I used to do manual installs so I would set the timezone each time.
>I have now migrated to kickstart and I wish to use a command line (at
>boot) parameter
>to set the needed timezone.

What's wrong with the KS Timezone command? Why do it via cmdline or w/ symbolic
links??
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: setting timezone from kickstart

2008-09-30 Thread Jerry Geis


>/I used to do manual installs so I would set the timezone each time.
/>/I have now migrated to kickstart and I wish to use a command line (at
/>/boot) parameter
/>/to set the needed timezone.
/
What's wrong with the KS Timezone command? Why do it via cmdline or w/ symbolic
links??
  
On first thought I didnt want to have X different KS files for setting 
the timezone... however, I can use the command
line method I was thinking about... then use the %pre section to make 
use of the KS timezone

command.

Thanks - I just wasnt thinking straight yet this morning.

Jerry
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Zone transfers not working for subdomain

2008-09-30 Thread Sean Carolan
I have a domain, let's call it "example.com".  I am able to do zone
transfers on the local host as follows:

dig example.com AXFR @localhost

This command outputs all of the contents of the zone as expected.  I
am unable to do zone transfers on my subdomain though:

dig subdomain.example.com AXFR @localhost

; <<>> DiG 9.2.1 <<>> subdomain.example.com AXFR @localhost
;; global options:  printcmd
; Transfer failed.

Below are my config files, truncated and with host names changed to
protect the innocent:

 From /var/named/zones.conf ***

zone "example.com" {
type master;
file "master/example.com";
};

zone "subdomain.example.com" {
type master;
file "master/subdomain.example.com";
};



*** From /var/named/master/example.com ***

@   IN  SOA ns.example.com. root.example.com. (
2008092902
1H
10M
9D
5M )

NS  ns1.slaveserver.net.
NS  ns2.slaveserver.net.
A   66.45.102.50
(whole bunch of CNAME and A records removed for brevity's sake)



*** From /var/named/master/subdomain.example.com ***


$ttl 38400
@   IN  SOA ns.example.com. root.example.com. (
200809
5M
5M
7D
38400 )

subdomain.example.com  IN  NShost1.internal.ops.
subdomain.example.com   IN  NS   host2.internal.ops.
(Note that internal.ops is for internal use only)


What am I missing here?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Questions on custom LiveCD

2008-09-30 Thread Kai Schaetzl
I tried making my own LiveCD according to the instructions on the project 
site. First, applause, the basic procedure works like a charm. It's really 
easy to do and works right from the beginning (I'm building it inside a 
VM). I tried the minimal and the desktop version (with a few changes).

I have encountered a few problems and have some questions.

The German keyboard I set in the kickstart file was setup correctly for 
text mode, but not for graphical mode. I can change it from within the 
account, so everything that needs to be there seems to be there. Do others 
have the same problem?

The graphical mode just displays a blank screen on my laptop (contains 
some S3 UniChrome chip). Is this an expected problem? It's not a big 
problem that the X server doesn't run on that laptop, but I wonder if it's 
possible to use a more generic driver that would at least display in lower 
resolution or so? (as I don't know if the machine where the CD might get 
used also has an unsupported chipset.)

The goal is to create a CD that provides a browser and a LAMP web 
application, so that a few people that don't have access to the net in 
their office can use/test a database project. So, going on, I would like 
to add the code and database to the CD, so that the user can open Firefox 
and use the application from the local webserver. I see that the structure 
of the CD is an ext3fs.img with the root filesystem in a squashfs.img in 
the iso file. If I change the content of the ext3fs.img can I put it back 
on the rw mounted squashfs.img and that in the iso? If yes, I assume I 
would need to cater for a necessary resize of the images. If no or if 
there is a better way, how?

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: Zone transfers not working for subdomain

2008-09-30 Thread Sean Carolan
>
> What am I missing here?
>

Ok, I was able to sort this one out on my own.  I was missing some
periods on my NS records, apparently this was somehow preventing the
transfers.  All is good.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] how to set term environment for cronjobs?

2008-09-30 Thread Rudi Ahlers
Hi,

I'm running a crontjob on CentOS 5.2 server, which then connects to a
webpage to run some stuff. It has to run this way, since the webpage
is on a Windows server, and the Windows scheduled tasks doesn't work
as well.

It seems like the cronjob is working fine, except that the email
output worries me a bit.

This is what I get on email,



  Your Terminal type is unknown!

  Enter a terminal type: [vt100]
TERMINAL TYPE IS SET TO vt100
(B)0[?7h[?1h=




















Getting http://billing/pipe/pop.php
   
Looking up billing 
Making HTTP connection to billing
Sending HTTP request. 
HTTP request sent; waiting for response.


[?1l>


So, the question is, how do I set the terminal type for a cronjob?

-- 

Kind Regards
Rudi Ahlers
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] how to set term environment for cronjobs?

2008-09-30 Thread Bill Campbell
On Tue, Sep 30, 2008, Rudi Ahlers wrote:
>Hi,
>
>I'm running a crontjob on CentOS 5.2 server, which then connects to a
>webpage to run some stuff. It has to run this way, since the webpage
>is on a Windows server, and the Windows scheduled tasks doesn't work
>as well.
>
>It seems like the cronjob is working fine, except that the email
>output worries me a bit.
>
>This is what I get on email,
...
>So, the question is, how do I set the terminal type for a cronjob?

There are many ways to do this depending on the type of program executed by
the cron job (e.g. shell script, perl, python, or compiled program).  One
way that will always work is to write a wrapper script that execs the real
script, something like:

#!/bin/sh
# set a terminal type that makes your application happy
TERM=dumb
export TERM
# set any other environment variables as necessary
exec /path/to/real/script

Bill
-- 
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:  (206) 236-1676  Mercer Island, WA 98040-0820
Fax:(206) 232-9186

The trade of governing has always been monopolized by the most ignorant and
the most rascally individuals of mankind. -- Thomas Paine
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] scp and key login

2008-09-30 Thread Kai Schaetzl
Nate wrote on Mon, 29 Sep 2008 07:36:03 -0700 (PDT):

> I think what your looking for is SSH agent forwarding
> 
> http://unixwiz.net/techtips/ssh-agent-forwarding.html

Thanks, the agent without forwarding might be enough. The article is a bit 
general, though. I hope I can actually make this work with the few details 
it gives.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] how to set term environment for cronjobs?

2008-09-30 Thread Kai Schaetzl
Rudi Ahlers wrote on Tue, 30 Sep 2008 17:44:02 +0200:

> It has to run this way, since the webpage
> is on a Windows server, and the Windows scheduled tasks doesn't work
> as well.

I'd rather look there why it doesn't work for you. Scheduled tasks works 
just fine on my Windows servers. I'm not getting an email from them, if 
that is what you want, though. Btw, you can also install cron on Windows!

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Probably a bad set-up but which one?

2008-09-30 Thread MHR
On Mon, Sep 29, 2008 at 7:32 PM, fred smith
<[EMAIL PROTECTED]> wrote:
>
> two things:
> 1. there's already a program named test, which displays no output,
> it merely has an exit status.

And, in general, it is a poor idea showing little imagination to name
a test program "test."

> 2. for a program in your current directory, run it with a preceding "./",
> e.g., "./test"--because "." is not in the path (and shouldn't be).

I rather like having . in my path, and up front.  However, programs
should reflect something of their content.  The Hello World program
could much more recognizably (and future-referentially) named "hello."

It's one of those mornings

mhr
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Probably a bad set-up but which one?

2008-09-30 Thread MHR
On Mon, Sep 29, 2008 at 7:50 PM, Bob Hoffman <[EMAIL PROTECTED]> wrote:
>
> I know off topic, but it was funny
>

I think humor is almost always on topic, at least if there's some
relevance to the subject at hand, like here.

Thanks for the laugh.

mhr
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configure an ATI Radeon X1200 card?

2008-09-30 Thread Niki Kovacs

John a écrit :

 IMO I think you would be better off get the drivers from ATI and use them.
I have had better results with getting the propriatery drivers for those
cards. 


I followed your suggestion, and it worked very well.

Thanks!

Niki
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Broken pipe, x86_64 CentOS 5.2

2008-09-30 Thread Daniel Andrzejewski

Hi All,

I have a problem with torque (openPBS) on x86_64 CentOS 5.2. Just to add there's 
no problem on a 32bit CentOS 5.2 or 64bit Ubuntu 8.04.


The problem is that pbs_mom's child quits without giving any error logs.

[EMAIL PROTECTED] torque-2.3.3]# strace -f pbs_mom
.
.
.
bind(6, {sa_family=AF_INET, sin_port=htons(15002), 
sin_addr=inet_addr("0.0.0.0")}, 16) = 0

time(NULL)  = 1222785330
listen(6, 512)  = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 7
setsockopt(7, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(7, {sa_family=AF_INET, sin_port=htons(15003), 
sin_addr=inet_addr("0.0.0.0")}, 16) = 0

time(NULL)  = 1222785330
listen(7, 512)  = 0
fcntl(5, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
clone(Process 18441 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x2b276258fdb0) = 18441
[pid 18441] getsockname(3, {sa_family=AF_INET, sin_port=htons(56711), 
sin_addr=inet_addr("172.16.0.9")}, [16]) = 0
[pid 18441] getpeername(3, {sa_family=AF_INET, sin_port=htons(389), 
sin_addr=inet_addr("172.16.2.24")}, [68719476752]) = 0

[pid 18441] fcntl(3, F_GETFD)   = 0x1 (flags FD_CLOEXEC)
[pid 18441] dup(3)  = 8
[pid 18441] fcntl(8, F_SETFD, FD_CLOEXEC) = 0
[pid 18441] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 9
[pid 18441] close(3)= 0
[pid 18441] fcntl(9, F_GETFD)   = 0
[pid 18441] dup2(9, 3)  = 3
[pid 18441] fcntl(3, F_SETFD, 0)= 0
[pid 18441] close(9)= 0
[pid 18441] write(3, "\25\3\1\0 
\232\17\205\301f37 

[pid 18440] exit_group(0)   = ?
[pid 18441] <... write resumed> )   = -1 EPIPE (Broken pipe)
[pid 18441] --- SIGPIPE (Broken pipe) @ 0 (0) ---
Process 18441 detached
[EMAIL PROTECTED] torque-2.3.3]#


I have asked torque users mailing list, but since the problem is related 
strictly to CentOS 5.2 64bit, I thought I would go ahead and ask here.


Any help is appreciated.

Thanks,

Daniel

--
Daniel Andrzejewski
student IT Administrator
Elec Engr & Comp Science
University of Tennessee
(865) 974 - 4388 (work)

"Investment in knowledge always pays the best interest" Benjamin Franklin
--


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] iSCSI ini and ESX Server

2008-09-30 Thread Joseph L. Casale
I always used IET on CentOS but I have a quick server to setup to backup some 
VM's, then migrate to DAS
on another server and the easiest way for me will be to accomplish this via 
iSCSI vmfs stores. I figured I would
just use the ini that ships with CentOS but have never used it against ESX, 
anyone do this and have experiences
they care to share? Should it be trivial or are there any non standard configs 
that need to be used?

Thanks!
jlc
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] iSCSI ini and ESX Server

2008-09-30 Thread nate
Joseph L. Casale wrote:
> I always used IET on CentOS but I have a quick server to setup to backup
> some VM's, then migrate to DAS
> on another server and the easiest way for me will be to accomplish this via
> iSCSI vmfs stores. I figured I would
> just use the ini that ships with CentOS but have never used it against ESX,
> anyone do this and have experiences
> they care to share? Should it be trivial or are there any non standard
> configs that need to be used?

Are you talking about using CentOS as an iSCSI server and
having ESX talk to it via iSCSI client? Or are you talking
about running CentOS inside ESX and using an iSCSI client
from within the guest VM?

I have done the latter, and have used OpenFiler as an iSCSI
server for ESX's iSCSI client, and both worked fine no special
options needed.

nate

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] iSCSI ini and ESX Server

2008-09-30 Thread Jason Cox
On Tue, Sep 30, 2008 at 10:28 AM, Joseph L. Casale <
[EMAIL PROTECTED]> wrote:

> I always used IET on CentOS but I have a quick server to setup to backup
> some VM's, then migrate to DAS
> on another server and the easiest way for me will be to accomplish this via
> iSCSI vmfs stores. I figured I would
> just use the ini that ships with CentOS but have never used it against ESX,
> anyone do this and have experiences
> they care to share? Should it be trivial or are there any non standard
> configs that need to be used?
>
> Thanks!
> jlc
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

I have CentOS v5.2 running as an iSCSI target server and multiple ESXi
servers as the initiator with VMFS. This works great! The tgt daemon that
comes with CentOS is simple to support as long as you know how to use tgtadm
to setup the targets. I modified the tgtd init script to allow me to use
config files. I did not use CHAP since this was a private network. I just
locked it down by IP range. ESX had no problems connecting too and mounting
the iSCSI targets.

Jason Cox
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] iSCSI ini and ESX Server

2008-09-30 Thread Joseph L. Casale
>I have CentOS v5.2 running as an iSCSI target server and multiple ESXi servers 
>as the initiator with VMFS. This works great! The tgt daemon that comes with 
>CentOS is simple to support as long as you >know how to use tgtadm to setup 
>the targets. I modified the tgtd init script to allow me to use config files. 
>I did not use CHAP since this was a private network. I just locked it down by 
>IP range. ESX >had no problems connecting too and mounting the iSCSI targets.
>
>Jason Cox

Great, I guess I had better read up on how to create targets, I just assumed it 
would
be like iet and use text files. What was your mod for the init script?

jlc
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] install Verisign/NetSol CA bundle

2008-09-30 Thread sbeam
I have a client-provided SSL cert that seems to be provided by Verisign but 
issued by my good friends at Network Problems. I thought this was part of 
default cert.pem, but maybe not.

The docs on Verisign's site are... ahem... unhelpful.

I have what I think is the correct CA chain for this cert, but still trying to 
determine what marketing terms overlap with what reality. But how is it to be 
tested?

here is the info ( nj.pem contains the Certificate and the Private Key )

$ openssl verify nj.pem
nj.pem: /C=US/postalCode=9/ST=OH/L=Columbus/streetAddress=4111  
Ave./O=XYZ Inc./OU=Secure Link SSL Pro/CN=xyz.foo.com
error 20 at 0 depth lookup:unable to get local issuer certificate

$ openssl x509 -noout -in nj.pem -issuer
issuer= /C=US/O=Network Solutions L.L.C./CN=Network Solutions Certificate 
Authority

So if append the correct CA certs to my nj.pem, then 'openssl verify' should 
be happy, is this correct?

thanks!

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Module.symvers

2008-09-30 Thread Jerry Geis

I am going into:
/usr/src/kernels/2.6.18-92.1.10.el5-x86_64

and doing a "make mrproper"
attempting to rebuild the Modules.symvers file. As I added ALSA 1.0.17  
to the current kernel.


I am getting an error:
make mrproper
scripts/Makefile.clean:17: 
/usr/src/kernels/2.6.18-92.1.10.el5-x86_64/drivers/infiniband/hw/amso1100/Makefile: 
No such file or directory
make[3]: *** No rule to make target 
`/usr/src/kernels/2.6.18-92.1.10.el5-x86_64/drivers/infiniband/hw/amso1100/Makefile'.  
Stop.

make[2]: *** [drivers/infiniband/hw/amso1100] Error 2
make[1]: *** [drivers/infiniband] Error 2
make: *** [_clean_drivers] Error 2

Is this not the correct way to rebuild the Modules.symvers file?

Jerry
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT - Monitoring tool

2008-09-30 Thread Robert Spangler
On Tuesday 30 September 2008 05:32, Jim Wildman wrote:

>  On Tue, 30 Sep 2008, Marcelo M. Garcia wrote:
>  > I have been using Nagios for monitoring the network and a few servers.
>  > It works fine. It's not the easiest thing to get it working properly.
>  >
>  > Regards
>  >
>  > M.
>
>  Have not tried it, but I snipped this for future use.
>
>  FAN Fully Automated Nagios (based on CentOS)
>
>  http://sourceforge.net/projects/fannagioscd

This looks interesting.  Will have to read up on it some.
Just wondering if I can configure it to allow many people to setup monitoring 
different way on the same device?

Thnx for the link.


-- 

Regards
Robert

It is not just an adventure.
It is my job!!

Linux User #296285
http://counter.li.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] script

2008-09-30 Thread Mad Unix
Dear ALL,

I need some help with bash scripting, a script that search the content
of multiple files and replace old string ip "10.5.1.10" with the new
string ip "127.128.1.10" it will search in specific folder and sub
folders

Thanks
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: Module.symvers

2008-09-30 Thread Jerry Geis

Jerry Geis wrote:

I am going into:
/usr/src/kernels/2.6.18-92.1.10.el5-x86_64

and doing a "make mrproper"
attempting to rebuild the Modules.symvers file. As I added ALSA 
1.0.17  to the current kernel.


I am getting an error:
make mrproper
scripts/Makefile.clean:17: 
/usr/src/kernels/2.6.18-92.1.10.el5-x86_64/drivers/infiniband/hw/amso1100/Makefile: 
No such file or directory
make[3]: *** No rule to make target 
`/usr/src/kernels/2.6.18-92.1.10.el5-x86_64/drivers/infiniband/hw/amso1100/Makefile'.  
Stop.

make[2]: *** [drivers/infiniband/hw/amso1100] Error 2
make[1]: *** [drivers/infiniband] Error 2
make: *** [_clean_drivers] Error 2

Is this not the correct way to rebuild the Modules.symvers file?

Jerry


If I CD /usr/src/kernels/2/6/18-92.1.10.el5-x86_64 and run the command:
make -f scripts/Makefile.modpost


This seems to make the file. Not sure if thats what I need yet but its a 
step.


Jerry
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Re: question about software Raid 1

2008-09-30 Thread Les Mikesell

Kay Diederichs wrote:


Fact is that with CentOS-5 kernels (but not with CentOS-4, as this 
functionality became available in kernel 2.6.17) you could (or rather 
_should_ regularly)

   echo check > /sys/block/mdX/md/sync_action
to check agreement between the two (or more) copies. When this finishes, 
/sys/block/mdX/md/mismatch_cnt shows you the number of mismatches. You 
can fix these with

   echo repair > /sys/block/mdX/md/sync_action

This applies to at least RAID1 and RAID5.
At this point the question arises: how does the "repair job" know which 
copy is the correct one? I have no answer to this question.


Thanks for posting this.  I have a machine that periodically had 
filesystem errors on a RAID1 volume that I eventually found were caused 
by bad RAM but even after replacing it I'd still see filesystem problems 
 reappear every few weeks.  It turned out that there were quite a few 
mismatched blocks between the mirrors and the fsck passes must have 
sometimes seen the good copy but subsequently the still-bad alternate 
would be used.  Now I've done a repair and fsck and so far everything 
seems stable.  It's hard to tell with problems that only happen once or 
twice a month, though.  I suppose I have some files with corrupt 
contents on there but they are backups that will expire as more current 
ones are saved anyway.


BTW, there is - even with current kernels - no speed gain in using RAID1 
- see http://kernelnewbies.org/KernelProjects/Raid1ReadBalancing .


I don't think I believe that - you can see the reads alternating drives 
by watching the lights.


--
  Les Mikesell
   [EMAIL PROTECTED]
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Questions on custom LiveCD

2008-09-30 Thread Kai Schaetzl
Kai Schaetzl wrote on Tue, 30 Sep 2008 16:39:13 +0200:

> If I change the content of the ext3fs.img can I put it back 
> on the rw mounted squashfs.img and that in the iso?

Answering myself: no.

The procedure I used now is in short:
unsquashfs the squashfs.img
add a few files to the home dir on ext3fs.img, just for testing
mksquashfs the new squashfs.img from the squashfs-root tree
extract all stuff from the iso to a directory tree, replace the 
squashfs.img with the new one. Then mkisofs the directory to a new iso.
Seems to has worked just fine. The resulting CD looks the same as the 
original one, just with additional translation tables and a slightly 
bigger squashfs.img.

Problem: at boot the kernel finally panics because of a problem with 
initrd. It "can't find root file system" and drops me to a shell.
Why would I need a new initrd if I just add a few static files?


Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT - Monitoring tool

2008-09-30 Thread Robert Spangler
On Tuesday 30 September 2008 01:15, Rudi Ahlers wrote:

>  Have you looked at Nagios or Groundwork? There are some howto's on
>  http://www.howtoforge.net

Was not aware of this site.  Big Thnx!


-- 

Regards
Robert

It is not just an adventure.
It is my job!!

Linux User #296285
http://counter.li.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script

2008-09-30 Thread Tharun Kumar Allu
On Tue, Sep 30, 2008 at 3:47 PM, Mad Unix <[EMAIL PROTECTED]> wrote:

> Dear ALL,
>
> I need some help with bash scripting, a script that search the content
> of multiple files and replace old string ip "10.5.1.10" with the new
> string ip "127.128.1.10" it will search in specific folder and sub
> folders
>
> Thanks
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

sed -i  's/10.5.1.10/127.128.1.10/'

should help you
example
find /path/  | xargs sed -i  's/
10.5.1.10/127.128.1.10/'

-- 
Tharun Kumar Allu
==
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configure an ATI Radeon X1200 card?

2008-09-30 Thread Nicolas Thierry-Mieg



Niki Kovacs wrote:
Then I edit this with Vi, step by step. Usually, this works, but not for 
ATI cards. Here, the first draft only gives me a "vesa" driver... though 
xorg-x11-drv-ati is installed. But then, when I replace


not so long ago I had an X1300, and it was not supported in the centos 5 
xorg-x11-drv-ati. THe only solutions were vesa or fglrx (closed source 
ATI driver).

This was with centos 5.0 and probably also 5.1.
Unless things changed in 5.2, or X1200 is very different from X1300, I 
suggest you try fglrx if vesa doesn't suit you.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT - Monitoring tool

2008-09-30 Thread John R Pierce

Robert Spangler wrote:

This looks interesting.  Will have to read up on it some.
Just wondering if I can configure it to allow many people to setup monitoring 
different way on the same device?
  


nagios monitors are configured by a script file on each monitored target 
system that script file could (in theory at least) include a bunch 
of other script files, each owned by a different user such that only 
that user could edit it would not this satisfy your management 
requirements?



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configure an ATI Radeon X1200 card?

2008-09-30 Thread Niki Kovacs

Nicolas Thierry-Mieg a écrit :


This was with centos 5.0 and probably also 5.1.
Unless things changed in 5.2, or X1200 is very different from X1300, I 
suggest you try fglrx if vesa doesn't suit you.


I opted for fglrx, with excellent results. Strangely enough, the X1200 
card is not listed on ATI's site, but the driver works nonetheless.


cheers,

Niki
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] how to set term environment for cronjobs?

2008-09-30 Thread Rudi Ahlers
On Tue, Sep 30, 2008 at 6:31 PM, Kai Schaetzl <[EMAIL PROTECTED]> wrote:
> Rudi Ahlers wrote on Tue, 30 Sep 2008 17:44:02 +0200:
>
>> It has to run this way, since the webpage
>> is on a Windows server, and the Windows scheduled tasks doesn't work
>> as well.
>
> I'd rather look there why it doesn't work for you. Scheduled tasks works
> just fine on my Windows servers. I'm not getting an email from them, if
> that is what you want, though. Btw, you can also install cron on Windows!
>
> Kai
>
> --
> Kai Schätzl, Berlin, Germany
> Get your web at Conactive Internet Services: http://www.conactive.com
>
>
>
> ___

Hi Kai,

Even though it would be ideal for it to run on the Windows server, the
scheduled tasks simple doesn't work reliably. The script that needs to
be triggered is WHMCS's (http://www.whmcs.com)'s billing & support
crons. The support cron needs to run every 5 minutes, and the billing
one every hour.

When I set it up on the Windows server, it will work fine for a week
or even 3, and then stops working without any warnings. According to
Windows, it is running, but I never actually get the billing to work.
Our clients was supposed to be invoiced on the 25th, and they didn't
get their invoices, and it's now the 30th already.

So, I decided to use something that I know, cron.

I simply need to call 2 php scripts via a website - very simple todo,
but cron tends to give me these errors for some odd reason, and the
scripts doesn't run on the remote website.



-- 

Kind Regards
Rudi Ahlers
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Re: Moving folder just vanished??

2008-09-30 Thread Stewart Williams

William L. Maltby wrote:

...


and the missing files are now listed.


Now or not?


Not. Typo sorry.

...


Last stab in the dark: any "undelete" capability on that file system? If
the files are not found, I am guessing they have been deleted. Barring
that facility, I hope you have a recent backup.


Not as I am aware.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Re: Moving folder just vanished??

2008-09-30 Thread Stewart Williams
Thank you for all of the suggestions. So far I have tried them all but 
still cannot fathom it out. The files have just disappeared and I don't 
know how or why.


I think all I can conclude is that they are gone for good.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] mount UFS partition on CentOS 5.

2008-09-30 Thread Daniel Bruno
Hi Dears,

I am having trouble mounting a partition with UFS file system (FreeBSD), I
am trying to build with the following commands:

mount-r-t-o ufs ufstype = ufs2 / dev/hdb1 / part
mount-r-t-o ufs ufstype = 44bsd / dev/hdb1 / part

But appears the following error message:

mount: wrong fs type, bad option, bad superblock on / dev/hdb1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg

anybody have any idea?


Thanks,

-- 
Daniel Bruno
http://danielbruno.argo.com.br
[EMAIL PROTECTED]
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Re: Moving folder just vanished??

2008-09-30 Thread William L. Maltby

On Tue, 2008-09-30 at 21:54 +0100, Stewart Williams wrote:
> Thank you for all of the suggestions. So far I have tried them all but 
> still cannot fathom it out. The files have just disappeared and I don't 
> know how or why.
> 
> I think all I can conclude is that they are gone for good.

Last gasp: any chance of FS corruption? Maybe an fsck run will show some
errors, corrections and put some goodies in lost+found?

> 

HTH
-- 
Bill

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mount UFS partition on CentOS 5.

2008-09-30 Thread nate
Daniel Bruno wrote:
> Hi Dears,
>
> I am having trouble mounting a partition with UFS file system (FreeBSD), I
> am trying to build with the following commands:
>

Does the driver exist?

grep -i ufs /boot/config-`uname -r`

also grep -i ufs /proc/filesystems

It seems on CentOS 4.6 and 5.1 at least UFS support is not
compiled into the kernel. Red Hat typically is pretty conservative
with the options they use I can't imagine UFS being all that well
tested under linux but I certainly could be wrong. You may be able
to find a 3rd party kernel that has it or build the module(s)
yourself.

I recall last time I tried UFS(on a debian system) it only
supported read-only access, which was of limited help(was
trying to modify the config of a OpenBSD system that was installed
on a CF card which was hanging on boot).

nate

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Re: Moving folder just vanished??

2008-09-30 Thread Stewart Williams

William L. Maltby wrote:

On Tue, 2008-09-30 at 21:54 +0100, Stewart Williams wrote:
Thank you for all of the suggestions. So far I have tried them all but 
still cannot fathom it out. The files have just disappeared and I don't 
know how or why.


I think all I can conclude is that they are gone for good.


Last gasp: any chance of FS corruption? Maybe an fsck run will show some
errors, corrections and put some goodies in lost+found?





HTH


Hi Williams

I have already tried this and gave no errors (even with fsck -f) and 
nothing appeared in lost+found.


Strange one.

--
Regards,
Stewart Williams
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mount UFS partition on CentOS 5.

2008-09-30 Thread William L. Maltby

On Tue, 2008-09-30 at 17:05 -0400, Daniel Bruno wrote:
> Hi Dears,
> 
> I am having trouble mounting a partition with UFS file system
> (FreeBSD), I am trying to build with the following commands: 
> 
> mount-r-t-o ufs ufstype = ufs2 / dev/hdb1 / part 
> mount-r-t-o ufs ufstype = 44bsd / dev/hdb1 / part 
> 
> But appears the following error message: 
> 
> mount: wrong fs type, bad option, bad superblock on / dev/hdb1, 
> missing codepage or other error 
> In some cases useful info is found in syslog - try 
> dmesg
> 
> anybody have any idea?

We need more information. However, presuming you are running 5.2, stock
kernel, check config-2.6.18-92.1.13.el5 in the grub directory. UFS is
not enabled. Maybe a plus kernel has it enabled or you can build a
custom kernel.

> 

HTH
-- 
Bill

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Re: Moving folder just vanished??

2008-09-30 Thread Stewart Williams
Also that is odd, is when I drag anything to the Trash icon, and open 
it, there are no files. However when I use a terminal and look in 
~/.Trash all deleted files are show.


Coincidence?
--
Regards,
Stewart Williams
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mount UFS partition on CentOS 5.

2008-09-30 Thread Tru Huynh
On Tue, Sep 30, 2008 at 05:12:59PM -0400, William L. Maltby wrote:
> 
> We need more information. However, presuming you are running 5.2, stock
> kernel, check config-2.6.18-92.1.13.el5 in the grub directory. UFS is
> not enabled. Maybe a plus kernel has it enabled or you can build a
> custom kernel.

http://people.centos.org/tru/dkms/RPMS/ has the ufs driver
but you need to install RPMforge's dkms package to rebuild the
module for your kernel version.
see http://wiki.centos.org/AdditionalResources/Repositories

the mount command would be somehting like
mount -t ufs -o ro,ufstype=44bsd /dev/hdb1 /mnt/bsd

Cheers,

Tru
-- 
Tru Huynh (mirrors, CentOS-3 i386/x86_64 Package Maintenance)
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xBEFA581B


pgpKvzO7xpj0w.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Firefox distorted printing

2008-09-30 Thread Chris Geldenhuis

Hi,
I am running a fully updated CentOS 4 box. Since the last few rounds of 
updates - upgrading to the latest Firefox, I find that I can not print 
Bank statements etc ( .ps files when saved to disk). The Bank's logo and 
any lines on the form print OK but the actual content is distorted 
beyond recognition - printing a series of special characters  
(!"$%&#'(") instead of transaction descriptions or amounts. Has anyone 
else experienced this or have a suggestion on how to fix the problem.


Other preformatted documents like supplier invoices are also not printed 
as well formatted as before (html documents) but appear all squashed up 
instead of filling the page vertically.


TIA

ChrisG
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script

2008-09-30 Thread Chris Geldenhuis

Mad Unix wrote:

Dear ALL,

I need some help with bash scripting, a script that search the content
of multiple files and replace old string ip "10.5.1.10" with the new
string ip "127.128.1.10" it will search in specific folder and sub
folders

Thanks
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

  

How about:

find  -exec sed "s/10.5.1.10/127.128.1.10/" \{\} \;

ChrisG
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] how to set term environment for cronjobs?

2008-09-30 Thread Filipe Brandenburger
Hi,

On Tue, Sep 30, 2008 at 16:30, Rudi Ahlers <[EMAIL PROTECTED]> wrote:
> I simply need to call 2 php scripts via a website - very simple todo,
> but cron tends to give me these errors for some odd reason, and the
> scripts doesn't run on the remote website.

How are you calling these scripts from cron? lynx? wget? curl? Maybe
the problem is with the tool you are using to do that. If you give us
more details, we might be able to help you better.

HTH,
Filipe
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Re: Moving folder just vanished??

2008-09-30 Thread MHR
On Tue, Sep 30, 2008 at 2:15 PM, Stewart Williams
<[EMAIL PROTECTED]> wrote:
> Also that is odd, is when I drag anything to the Trash icon, and open it,
> there are no files. However when I use a terminal and look in ~/.Trash all
> deleted files are show.
>

This could be a synchronization issue, but I have another thought
about your missing files.

What file systems do you have mounted?  Is there any chance that your
files got moved to a mount point that is now hiding any files that are
actually located under it?  Try unmounting any file system you don't
need and see what's there underneath.

It's probably not the case, but it doesn't hurt to look.

mhr
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mount UFS partition on CentOS 5.

2008-09-30 Thread MHR
On Tue, Sep 30, 2008 at 2:05 PM, Daniel Bruno <[EMAIL PROTECTED]> wrote:
> Hi Dears,
>

Hiya, sweetie.

> I am having trouble mounting a partition with UFS file system (FreeBSD), I
> am trying to build with the following commands:
>
> mount-r-t-o ufs ufstype = ufs2 / dev/hdb1 / part
> mount-r-t-o ufs ufstype = 44bsd / dev/hdb1 / part
>

Is that actually how you typed in the command?  Doesn't look right at
all.  Normally you put '-t type' together, /then/ -o options.  Check
man mount to see if that might be some of it

mhr
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script

2008-09-30 Thread Amos Shapira
Except that you better quote the dots in the search string and put
word boundary match around it or you'll end up replacing too much. See
sed's -r switch for more.

On 10/1/08, Chris Geldenhuis <[EMAIL PROTECTED]> wrote:
> Mad Unix wrote:
>> Dear ALL,
>>
>> I need some help with bash scripting, a script that search the content
>> of multiple files and replace old string ip "10.5.1.10" with the new
>> string ip "127.128.1.10" it will search in specific folder and sub
>> folders
>>
>> Thanks
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> http://lists.centos.org/mailman/listinfo/centos
>>
>>
> How about:
>
> find  -exec sed "s/10.5.1.10/127.128.1.10/" \{\} \;
>
> ChrisG
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

-- 
Sent from Google Mail for mobile | mobile.google.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script

2008-09-30 Thread MHR
On Tue, Sep 30, 2008 at 3:08 PM, Chris Geldenhuis
<[EMAIL PROTECTED]> wrote:
>
> How about:
>
> find  -exec sed "s/10.5.1.10/127.128.1.10/" \{\} \;
>

First, the '\' characters are unnecessary and confusing, except the
one that precedes the semi-colon.

Second, that won't work.  Sed does not perform on files in place - its
output is sent to stdout unless it is redirected, and you can't
redirect it back to the original file.  To do something this way,
you'd need a script that replaced the input file and used 'sed' to
generate the new one (and then the script would have to rename it).

mhr
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script

2008-09-30 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

MHR wrote:

> Second, that won't work.  Sed does not perform on files in place - its
> output is sent to stdout unless it is redirected, and you can't
> redirect it back to the original file.  To do something this way,
> you'd need a script that replaced the input file and used 'sed' to
> generate the new one (and then the script would have to rename it).

Au contraire:

- From the sed man page:

   -i[SUFFIX], --in-place[=SUFFIX]

  edit files in place (makes backup if extension supplied)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFI4rJJCFu3bIiwtTARArCgAJ9Ov/hR5rZJZxn3t2vqqJYwcCHztQCgldo+
aqaYmuuDKk/eWwTR/8f5qPg=
=IkKM
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script

2008-09-30 Thread MHR
On Tue, Sep 30, 2008 at 4:12 PM, Barry L. Kline <[EMAIL PROTECTED]> wrote:
>
> Au contraire:
>
> - From the sed man page:
>
>   -i[SUFFIX], --in-place[=SUFFIX]
>
>  edit files in place (makes backup if extension supplied)

Aha, bien sur, you are correct, M'sieur.

However, the original script as posted earlier in this thread did not
include that little snippet, so that would be needed, in which case it
could work.

Many thanks.

mhr
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] how to set term environment for cronjobs?

2008-09-30 Thread Kai Schaetzl
Rudi Ahlers wrote on Tue, 30 Sep 2008 22:30:29 +0200:

> I simply need to call 2 php scripts via a website - very simple todo,
> but cron tends to give me these errors for some odd reason, and the
> scripts doesn't run on the remote website.

People usually use wget for triggering such tasks, have you tried that? 
Does you script run fine when not run from cron?

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Firefox distorted printing

2008-09-30 Thread fred smith
On Wed, Oct 01, 2008 at 12:05:37AM +0200, Chris Geldenhuis wrote:
> Hi,
> I am running a fully updated CentOS 4 box. Since the last few rounds of 
> updates - upgrading to the latest Firefox, I find that I can not print 
> Bank statements etc ( .ps files when saved to disk). The Bank's logo and 
> any lines on the form print OK but the actual content is distorted 
> beyond recognition - printing a series of special characters  
> (!"$%&#'(") instead of transaction descriptions or amounts. Has anyone 
> else experienced this or have a suggestion on how to fix the problem.
> 
> Other preformatted documents like supplier invoices are also not printed 
> as well formatted as before (html documents) but appear all squashed up 
> instead of filling the page vertically.

I have a similr issue with a Centos 4 system at work, on which i've
installed FF3.

My solution is to send my printouts to a different printer where they
print perfectly!

I've got an old HP Laserjet 4 at my desk, and that browser on that OS
prints mostly junk characters on that printer. There's also a HP 4250
outside my door, and that browser/OS combination prints fine on that
printer. 

I've not pursued it beyond noting that I can print on the other printer,
but given that I had to find packages providing a whole bunch of updated
libraries in order to even get FF3 to work at all, I'd imagine there's
some weird interactions going on there.

-- 
 Fred Smith -- [EMAIL PROTECTED]  
Do you not know? Have you not heard? 
The LORD is the everlasting God, the Creator of the ends of the earth. 
  He will not grow tired or weary, and his understanding no one can fathom.
- Isaiah 40:28 (niv) -


pgpz8l2n3uIhD.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Firefox distorted printing

2008-09-30 Thread nate
Chris Geldenhuis wrote:
> Hi,
> I am running a fully updated CentOS 4 box. Since the last few rounds of
> updates - upgrading to the latest Firefox, I find that I can not print
> Bank statements etc ( .ps files when saved to disk). The Bank's logo and
> any lines on the form print OK but the actual content is distorted
> beyond recognition - printing a series of special characters
> (!"$%&#'(") instead of transaction descriptions or amounts. Has anyone
> else experienced this or have a suggestion on how to fix the problem.
>

Try printing to a file and use ps2pdf to convert it to PDF and
validate that the formatting is correct? I always print to a file
and convert to PDF myself just to have a "hard" electronic copy.

nate

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT - Monitoring tool

2008-09-30 Thread Robert Spangler
On Tuesday 30 September 2008 16:25, John R Pierce wrote:

>  Robert Spangler wrote:
>  > This looks interesting.  Will have to read up on it some.
>  > Just wondering if I can configure it to allow many people to setup
>  > monitoring different way on the same device?
>
>  nagios monitors are configured by a script file on each monitored target
>  system that script file could (in theory at least) include a bunch
>  of other script files, each owned by a different user such that only
>  that user could edit it would not this satisfy your management
>  requirements?

This might.  Thnx.


-- 

Regards
Robert

It is not just an adventure.
It is my job!!

Linux User #296285
http://counter.li.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] OT: C++ Newbie "Hello World" problem SOLVED

2008-09-30 Thread Lanny Marcus
Note: This began in the thread "[CentOS] Probably a bad setup but
which one?" but I don't want to hijack that thread.  "tech" began with
a similar problem, with the Perl "Hello World" script.

fred smith wrote:

> I can't get the "Hello World" program in the C++ book I began reading  to 
> work. Seems to compile without errors, but nothing on my CRT.  Will  try it 
> again and start a thread >here...   :-)

>Let me guess...

>you named it "test", right? Then when you run "test" "nothing" happens?

No. It is named Hello

>two things:
>1. there's already a program named test, which displays no output,
>it merely has an exit status.
>2. for a program in your current directory, run it with a preceding "./",
>e.g., "./test"--because "." is not in the path (and shouldn't be).

Fred: Thank you!   #2 was dead on.:-)

[EMAIL PROTECTED] ~]$ ./a.out
Hello, World! I am 8 Today!
[EMAIL PROTECTED] ~]$

What I was lacking was the "./" in front of a.outthe file produced
when I compiled Hello.cpp   :-)

I will continue reading the book now! :-)  Lanny


//: C02:Hello.cpp

// From Thinking in C++, 2nd Edition

// Available at http://www.BruceEckel.com

// (c) Bruce Eckel 2000

// Copyright notice in Copyright.txt

// Saying Hello with C++

#include  // Stream declarations

using namespace std;



int main() {

  cout << "Hello, World! I am "

   << 8 << " Today!" << endl;

} ///:~
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Firefox distorted printing

2008-09-30 Thread Les Bell

fred smith <[EMAIL PROTECTED]> wrote:

>>
On Wed, Oct 01, 2008 at 12:05:37AM +0200, Chris Geldenhuis wrote:
> Hi,
> I am running a fully updated CentOS 4 box. Since the last few rounds of
> updates - upgrading to the latest Firefox, I find that I can not print
> Bank statements etc ( .ps files when saved to disk). The Bank's logo and
> any lines on the form print OK but the actual content is distorted
> beyond recognition - printing a series of special characters
> (!"$%&#'(") instead of transaction descriptions or amounts. Has anyone
> else experienced this or have a suggestion on how to fix the problem.

I have a similr issue with a Centos 4 system at work, on which i've
installed FF3.

My solution is to send my printouts to a different printer where they
print perfectly!

I've got an old HP Laserjet 4 at my desk, and that browser on that OS
prints mostly junk characters on that printer. There's also a HP 4250
outside my door, and that browser/OS combination prints fine on that
printer.
<<

There seems to be a known issue with Firefox 3 on all platforms, when
printing to Postscript printers. I started a thread about it on the Mozilla
support forums, did some experimenting, thought I'd fixed it, found I
hadn't and in fact, have never resolved it. Things you might try:

* Turning off "Allow pages to choose their own fonts"
* Changing the default character encoding from "Western (ISO-8859-1)" to
something else (and possibly back again)
* Disabling the use of the printer's fonts in your driver

It's been a show-stopper for me, and I'm thinking about going back to FF2.

Best,

--- Les Bell
[http://www.lesbell.com.au]
Tel: +61 2 9451 1144
FreeWorldDialup: 800909


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Firefox distorted printing

2008-09-30 Thread MHR
On Tue, Sep 30, 2008 at 4:36 PM, nate <[EMAIL PROTECTED]> wrote:
>
> Try printing to a file and use ps2pdf to convert it to PDF and
> validate that the formatting is correct? I always print to a file
> and convert to PDF myself just to have a "hard" electronic copy.
>

Please post if that works - I've never been able to get a really good
result from ps2pdf.  Tif2pdf works great (and it's the only way I can
print graphics from Linux because, for some reason, all I get from
GIMP or the file viewer is black), but with ps2pdf my beautiful,
two-column, superbly formatted FrameMaker ps files turn into junk.
(My FrameMaker disc has a bad spot on the PDF converter area, so I
can't install the missing link to generate PDFs directly, although the
.ps files look fine until I try to convert them.)

mhr
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mount UFS partition on CentOS 5.

2008-09-30 Thread Daniel Bruno
Hi Tru,

I installed rpmforge, dkms and dmks-ufs, how you can see below:

[EMAIL PROTECTED] ~]# rpm -qva |grep dkms
dkms-2.0.20.4-1.el5.rf
dkms-ufs-2.6.18_8.1.8.el5-3.c5

[EMAIL PROTECTED] ~]# lsmod |grep ufs
ufs64644  0

but I still can't mount the partition:

# mount -t ufs -o ro,ufstype=44bsd /dev/hdb1 /part
mount: wrong fs type, bad option, bad superblock on /dev/hdb1,
   missing codepage or other error
   In some cases useful info is found in syslog - try
   dmesg | tail  or so

in the dmes, show this error:


ufs_read_super: bad magic number


On Tue, Sep 30, 2008 at 6:01 PM, Tru Huynh <[EMAIL PROTECTED]> wrote:

> On Tue, Sep 30, 2008 at 05:12:59PM -0400, William L. Maltby wrote:
> >
> > We need more information. However, presuming you are running 5.2, stock
> > kernel, check config-2.6.18-92.1.13.el5 in the grub directory. UFS is
> > not enabled. Maybe a plus kernel has it enabled or you can build a
> > custom kernel.
>
> http://people.centos.org/tru/dkms/RPMS/ has the ufs driver
> but you need to install RPMforge's dkms package to rebuild the
> module for your kernel version.
> see http://wiki.centos.org/AdditionalResources/Repositories
>
> the mount command would be somehting like
> mount -t ufs -o ro,ufstype=44bsd /dev/hdb1 /mnt/bsd
>
> Cheers,
>
> Tru
> --
> Tru Huynh (mirrors, CentOS-3 i386/x86_64 Package Maintenance)
> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xBEFA581B
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>


-- 
Daniel Bruno
http://danielbruno.argo.com.br
[EMAIL PROTECTED]
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Firefox distorted printing

2008-09-30 Thread Frank Cox
On Tue, 30 Sep 2008 17:24:57 -0700
MHR <[EMAIL PROTECTED]> wrote:

> I've never been able to get a really good
> result from ps2pdf.  Tif2pdf works great (and it's the only way I can
> print graphics from Linux because, for some reason, all I get from
> GIMP or the file viewer is black), but with ps2pdf my beautiful,
> two-column, superbly formatted FrameMaker ps files turn into junk.

What are you using to view the files?  Evince has problems with some graphics
- they come out as black squares.  Your best option is to use acroread to view
pdf files.

My experience with Scribus has shown me that a bad font or a bad graphic can
cause unknown errors in a pdf file.  On the other hand, I use ps2pdf all the
time to create pdf files from Scribus output for imposition purposes and as
long as the fonts and the graphics are up to snuff, everything works
wonderfully well.

-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
DRY CLEANER BUSINESS FOR SALE ~ http://www.canadadrycleanerforsale.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT - Monitoring tool

2008-09-30 Thread Kanwar Ranbir Sandhu
On Tue, 2008-09-30 at 05:32 -0400, Jim Wildman wrote:
> Have not tried it, but I snipped this for future use.
> 
> FAN Fully Automated Nagios (based on CentOS)
> 
> http://sourceforge.net/projects/fannagioscd

Oh wow - I haven't heard of this project. It looks sweeet.

The CentOS 5 + nagios + snmptt + cacti server I set up manually works
great, but this would sure be much more convenient.  I'll have to give
this a thorough test.

Thanks for the link!

Regards,

Ranbir

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT - Monitoring tool

2008-09-30 Thread Les Mikesell

Robert Spangler wrote:

On Tuesday 30 September 2008 16:25, John R Pierce wrote:


 Robert Spangler wrote:
 > This looks interesting.  Will have to read up on it some.
 > Just wondering if I can configure it to allow many people to setup
 > monitoring different way on the same device?

 nagios monitors are configured by a script file on each monitored target
 system that script file could (in theory at least) include a bunch
 of other script files, each owned by a different user such that only
 that user could edit it would not this satisfy your management
 requirements?


This might.  Thnx.



There's also opennms - http://www.opennms.org.  It lets you set up 
dashboard views that only display a subset of the nodes for a certain 
login but I don't think you can limit what someone with write access can 
configure.  It has a nice feature of being able to send notifications to 
an xmpp (jabber) group conference as well as the usual mechanisms.


--
  Les Mikesell
   [EMAIL PROTECTED]
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] DKIM

2008-09-30 Thread Nifty Cluster Mitch
On Fri, Sep 26, 2008 at 08:15:05PM +0200, mouss wrote:
> Kai Schaetzl wrote:
>> Mouss wrote on Thu, 25 Sep 2008 16:20:09 +0200:
>>
>>> oh please no. hotmail don't delete my mail and I don't have an SPF  
>>> record. no do yahoo/gmail. and this was before I implemented DKIM. 
>>> and I've recently worked for a project where SPF didn't help with 
>>> hotmail
>>
>> Well, then they have some other obscure reason to silently delete all 
>> mail from me to my daughter's Hotmail account. I thought it might be 
>> the missing SPF record on that specific domain I used. Their support is 
>> not able to tell the reason.
>
>
> like all the gorillas, they have complex filtering mechanisms, mostly  
> based on "reputation". among the freemail trilogy (gmail, yahoo, 
> hotmail):
>
> - gmail is more or less "workable". in short, they have better filtering  
> mechanisms in the sense that if you don't have too much problems in your  
> network, you can get your mail delivered provided you do some  
> (reasonable) efforts.
>
> - yahoo are lost in space. their filters probably block a lot of junk,  
> but they also block a lot of legitimate mail, and it's hard to get  
> around this. but at least, they either block you at smtp time or file  
> your mail to a junk folder.



What happens if a dozen of us add a yahoo filter that marks "[EMAIL PROTECTED]"
as spam.   i.e. what happens on large mailing lists when a service like yahoo
sees a set of messages from a specific user as spam.  Then what happens when
a handful of users on that list fall into the spam category... at what point
does the list server look like a spam source?

I have seen one or two junk mail messages in my list folders recently
and see a bunch of normal posters end up in my spam folders both on
google and on yahoo.



-- 
T o m  M i t c h e l l 
Found me a new hat, now what?

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Broken pipe, x86_64 CentOS 5.2

2008-09-30 Thread Daniel Andrzejewski
I got slightly different error this time, maybe some clue, and found this topic 
similar:


http://lists.centos.org/pipermail/centos/2008-July/060274.html


This line may be the clue:
getsockname(3, 0x7fff7866e9e0, [128])   = -1 ENOTSOCK (Socket operation on 
non-socket)


[EMAIL PROTECTED] torque-2.3.2-snap.200807081528]# strace -f pbs_mom
.
.
.
fcntl(4, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
clone(Process 26346 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x2aae326a1db0) = 26346

[pid 26345] exit_group(0)   = ?
getsockname(3, 0x7fff7866e9e0, [128])   = -1 ENOTSOCK (Socket operation on 
non-socket)

fcntl(3, F_GETFD)   = 0
dup(3)  = 7
fcntl(7, F_SETFD, 0)= 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 8
close(3)= 0
fcntl(8, F_GETFD)   = 0
dup2(8, 3)  = 3
fcntl(3, F_SETFD, 0)= 0
close(8)= 0
write(3, "\25\3\1\0 
\307\276jJ\207v\7\3473A\355\16\340\232\347\35\\\311\307\3472i)\5L\t\22"..., 37) 
= -1 EPIPE (Broken pipe)

--- SIGPIPE (Broken pipe) @ 0 (0) ---
Process 26346 detached
[EMAIL PROTECTED] torque-2.3.2-snap.200807081528]#


Daniel Andrzejewski
--

Daniel Andrzejewski wrote:

Hi All,

I have a problem with torque (openPBS) on x86_64 CentOS 5.2. Just to add 
there's no problem on a 32bit CentOS 5.2 or 64bit Ubuntu 8.04.


The problem is that pbs_mom's child quits without giving any error logs.

[EMAIL PROTECTED] torque-2.3.3]# strace -f pbs_mom
.
.
.
bind(6, {sa_family=AF_INET, sin_port=htons(15002), 
sin_addr=inet_addr("0.0.0.0")}, 16) = 0

time(NULL)  = 1222785330
listen(6, 512)  = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 7
setsockopt(7, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(7, {sa_family=AF_INET, sin_port=htons(15003), 
sin_addr=inet_addr("0.0.0.0")}, 16) = 0

time(NULL)  = 1222785330
listen(7, 512)  = 0
fcntl(5, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
clone(Process 18441 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x2b276258fdb0) = 18441
[pid 18441] getsockname(3, {sa_family=AF_INET, sin_port=htons(56711), 
sin_addr=inet_addr("172.16.0.9")}, [16]) = 0
[pid 18441] getpeername(3, {sa_family=AF_INET, sin_port=htons(389), 
sin_addr=inet_addr("172.16.2.24")}, [68719476752]) = 0

[pid 18441] fcntl(3, F_GETFD)   = 0x1 (flags FD_CLOEXEC)
[pid 18441] dup(3)  = 8
[pid 18441] fcntl(8, F_SETFD, FD_CLOEXEC) = 0
[pid 18441] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 9
[pid 18441] close(3)= 0
[pid 18441] fcntl(9, F_GETFD)   = 0
[pid 18441] dup2(9, 3)  = 3
[pid 18441] fcntl(3, F_SETFD, 0)= 0
[pid 18441] close(9)= 0
[pid 18441] write(3, "\25\3\1\0 
\232\17\205\301f37 

[pid 18440] exit_group(0)   = ?
[pid 18441] <... write resumed> )   = -1 EPIPE (Broken pipe)
[pid 18441] --- SIGPIPE (Broken pipe) @ 0 (0) ---
Process 18441 detached
[EMAIL PROTECTED] torque-2.3.3]#


I have asked torque users mailing list, but since the problem is related 
strictly to CentOS 5.2 64bit, I thought I would go ahead and ask here.


Any help is appreciated.

Thanks,

Daniel


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Broken pipe, x86_64 CentOS 5.2

2008-09-30 Thread Daniel Andrzejewski

Problem solved by removing ldap from the services line in /etc/nsswitch.

Daniel Andrzejewski

student IT Administrator
Elec Engr & Comp Science
University of Tennessee
(865) 974 - 4388 (work)

"Investment in knowledge always pays the best interest"
Benjamin Franklin
--

Daniel Andrzejewski wrote:
I got slightly different error this time, maybe some clue, and found 
this topic similar:


http://lists.centos.org/pipermail/centos/2008-July/060274.html


This line may be the clue:
getsockname(3, 0x7fff7866e9e0, [128])   = -1 ENOTSOCK (Socket operation 
on non-socket)


[EMAIL PROTECTED] torque-2.3.2-snap.200807081528]# strace -f pbs_mom
.
.
.
fcntl(4, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
clone(Process 26346 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x2aae326a1db0) = 26346

[pid 26345] exit_group(0)   = ?
getsockname(3, 0x7fff7866e9e0, [128])   = -1 ENOTSOCK (Socket operation 
on non-socket)

fcntl(3, F_GETFD)   = 0
dup(3)  = 7
fcntl(7, F_SETFD, 0)= 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 8
close(3)= 0
fcntl(8, F_GETFD)   = 0
dup2(8, 3)  = 3
fcntl(3, F_SETFD, 0)= 0
close(8)= 0
write(3, "\25\3\1\0 
\307\276jJ\207v\7\3473A\355\16\340\232\347\35\\\311\307\3472i)\5L\t\22"..., 
37) = -1 EPIPE (Broken pipe)

--- SIGPIPE (Broken pipe) @ 0 (0) ---
Process 26346 detached
[EMAIL PROTECTED] torque-2.3.2-snap.200807081528]#


Daniel Andrzejewski
--

Daniel Andrzejewski wrote:

Hi All,

I have a problem with torque (openPBS) on x86_64 CentOS 5.2. Just to 
add there's no problem on a 32bit CentOS 5.2 or 64bit Ubuntu 8.04.


The problem is that pbs_mom's child quits without giving any error logs.

[EMAIL PROTECTED] torque-2.3.3]# strace -f pbs_mom
.
.
.
bind(6, {sa_family=AF_INET, sin_port=htons(15002), 
sin_addr=inet_addr("0.0.0.0")}, 16) = 0

time(NULL)  = 1222785330
listen(6, 512)  = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 7
setsockopt(7, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(7, {sa_family=AF_INET, sin_port=htons(15003), 
sin_addr=inet_addr("0.0.0.0")}, 16) = 0

time(NULL)  = 1222785330
listen(7, 512)  = 0
fcntl(5, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
clone(Process 18441 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x2b276258fdb0) = 18441
[pid 18441] getsockname(3, {sa_family=AF_INET, sin_port=htons(56711), 
sin_addr=inet_addr("172.16.0.9")}, [16]) = 0
[pid 18441] getpeername(3, {sa_family=AF_INET, sin_port=htons(389), 
sin_addr=inet_addr("172.16.2.24")}, [68719476752]) = 0

[pid 18441] fcntl(3, F_GETFD)   = 0x1 (flags FD_CLOEXEC)
[pid 18441] dup(3)  = 8
[pid 18441] fcntl(8, F_SETFD, FD_CLOEXEC) = 0
[pid 18441] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 9
[pid 18441] close(3)= 0
[pid 18441] fcntl(9, F_GETFD)   = 0
[pid 18441] dup2(9, 3)  = 3
[pid 18441] fcntl(3, F_SETFD, 0)= 0
[pid 18441] close(9)= 0
[pid 18441] write(3, "\25\3\1\0 
\232\17\205\301f37 

[pid 18440] exit_group(0)   = ?
[pid 18441] <... write resumed> )   = -1 EPIPE (Broken pipe)
[pid 18441] --- SIGPIPE (Broken pipe) @ 0 (0) ---
Process 18441 detached
[EMAIL PROTECTED] torque-2.3.3]#


I have asked torque users mailing list, but since the problem is 
related strictly to CentOS 5.2 64bit, I thought I would go ahead and 
ask here.


Any help is appreciated.

Thanks,

Daniel


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] how to set term environment for cronjobs?

2008-09-30 Thread Rudi Ahlers
On Wed, Oct 1, 2008 at 12:37 AM, Filipe Brandenburger
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> On Tue, Sep 30, 2008 at 16:30, Rudi Ahlers <[EMAIL PROTECTED]> wrote:
>> I simply need to call 2 php scripts via a website - very simple todo,
>> but cron tends to give me these errors for some odd reason, and the
>> scripts doesn't run on the remote website.
>
> How are you calling these scripts from cron? lynx? wget? curl? Maybe
> the problem is with the tool you are using to do that. If you give us
> more details, we might be able to help you better.
>
> HTH,
> Filipe
> ___


Hi, yes sorry I should have added that :)

I'm using lynx, as follows:

9 0 * * * /usr/bin/lynx http://billing/admin/cron.php
*/5 * * * * /usr/bin/lynx http://billing/pipe/pop.php



-- 

Kind Regards
Rudi Ahlers
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] how to set term environment for cronjobs?

2008-09-30 Thread Les Mikesell

Rudi Ahlers wrote:

On Wed, Oct 1, 2008 at 12:37 AM, Filipe Brandenburger
<[EMAIL PROTECTED]> wrote:

Hi,

On Tue, Sep 30, 2008 at 16:30, Rudi Ahlers <[EMAIL PROTECTED]> wrote:

I simply need to call 2 php scripts via a website - very simple todo,
but cron tends to give me these errors for some odd reason, and the
scripts doesn't run on the remote website.

How are you calling these scripts from cron? lynx? wget? curl? Maybe
the problem is with the tool you are using to do that. If you give us
more details, we might be able to help you better.

HTH,
Filipe
___



Hi, yes sorry I should have added that :)

I'm using lynx, as follows:

9 0 * * * /usr/bin/lynx http://billing/admin/cron.php
*/5 * * * * /usr/bin/lynx http://billing/pipe/pop.php



Lynx wants to do cursor positioning which is fairly useless in 
non-interactive mode.  You can give it a terminal type on the command 
line with the -term= option, but it would probably be better to use wget 
instead for non-interactive work.


--
  Les Mikesell
   [EMAIL PROTECTED]
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script

2008-09-30 Thread Chris Geldenhuis

MHR wrote:

On Tue, Sep 30, 2008 at 3:08 PM, Chris Geldenhuis
<[EMAIL PROTECTED]> wrote:
  

How about:

find  -exec sed "s/10.5.1.10/127.128.1.10/" \{\} \;




First, the '\' characters are unnecessary and confusing, except the
one that precedes the semi-colon.

Second, that won't work.  Sed does not perform on files in place - its
output is sent to stdout unless it is redirected, and you can't
redirect it back to the original file.  To do something this way,
you'd need a script that replaced the input file and used 'sed' to
generate the new one (and then the script would have to rename it).

mhr
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

  
Apologies I should have included the -i switch for sed to modify file in 
place.


ChrisG
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Broken pipe, x86_64 CentOS 5.2

2008-09-30 Thread Rubin
Hi,

This is very probably a known issue from nss_ldap which breaks pipes.
Take a look at:

http://rhn.redhat.com/errata/RHBA-2008-0611.html

kind regards,


Rubin.

Daniel Andrzejewski wrote:
> Problem solved by removing ldap from the services line in /etc/nsswitch.
> 
> Daniel Andrzejewski
> 
> student IT Administrator
> Elec Engr & Comp Science
> University of Tennessee
> (865) 974 - 4388 (work)
> 
> "Investment in knowledge always pays the best interest"
> Benjamin Franklin
> -- 
> 
> Daniel Andrzejewski wrote:
>> I got slightly different error this time, maybe some clue, and found
>> this topic similar:
>>
>> http://lists.centos.org/pipermail/centos/2008-July/060274.html
>>
>>
>> This line may be the clue:
>> getsockname(3, 0x7fff7866e9e0, [128])   = -1 ENOTSOCK (Socket
>> operation on non-socket)
>>
>> [EMAIL PROTECTED] torque-2.3.2-snap.200807081528]# strace -f pbs_mom
>> .
>> .
>> .
>> fcntl(4, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
>> clone(Process 26346 attached
>> child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
>> child_tidptr=0x2aae326a1db0) = 26346
>> [pid 26345] exit_group(0)   = ?
>> getsockname(3, 0x7fff7866e9e0, [128])   = -1 ENOTSOCK (Socket
>> operation on non-socket)
>> fcntl(3, F_GETFD)   = 0
>> dup(3)  = 7
>> fcntl(7, F_SETFD, 0)= 0
>> socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 8
>> close(3)= 0
>> fcntl(8, F_GETFD)   = 0
>> dup2(8, 3)  = 3
>> fcntl(3, F_SETFD, 0)= 0
>> close(8)= 0
>> write(3, "\25\3\1\0
>> \307\276jJ\207v\7\3473A\355\16\340\232\347\35\\\311\307\3472i)\5L\t\22"...,
>> 37) = -1 EPIPE (Broken pipe)
>> --- SIGPIPE (Broken pipe) @ 0 (0) ---
>> Process 26346 detached
>> [EMAIL PROTECTED] torque-2.3.2-snap.200807081528]#
>>
>>
>> Daniel Andrzejewski
>> -- 
>>
>> Daniel Andrzejewski wrote:
>>> Hi All,
>>>
>>> I have a problem with torque (openPBS) on x86_64 CentOS 5.2. Just to
>>> add there's no problem on a 32bit CentOS 5.2 or 64bit Ubuntu 8.04.
>>>
>>> The problem is that pbs_mom's child quits without giving any error logs.
>>>
>>> [EMAIL PROTECTED] torque-2.3.3]# strace -f pbs_mom
>>> .
>>> .
>>> .
>>> bind(6, {sa_family=AF_INET, sin_port=htons(15002),
>>> sin_addr=inet_addr("0.0.0.0")}, 16) = 0
>>> time(NULL)  = 1222785330
>>> listen(6, 512)  = 0
>>> socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 7
>>> setsockopt(7, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
>>> bind(7, {sa_family=AF_INET, sin_port=htons(15003),
>>> sin_addr=inet_addr("0.0.0.0")}, 16) = 0
>>> time(NULL)  = 1222785330
>>> listen(7, 512)  = 0
>>> fcntl(5, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
>>> clone(Process 18441 attached
>>> child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
>>> child_tidptr=0x2b276258fdb0) = 18441
>>> [pid 18441] getsockname(3, {sa_family=AF_INET, sin_port=htons(56711),
>>> sin_addr=inet_addr("172.16.0.9")}, [16]) = 0
>>> [pid 18441] getpeername(3, {sa_family=AF_INET, sin_port=htons(389),
>>> sin_addr=inet_addr("172.16.2.24")}, [68719476752]) = 0
>>> [pid 18441] fcntl(3, F_GETFD)   = 0x1 (flags FD_CLOEXEC)
>>> [pid 18441] dup(3)  = 8
>>> [pid 18441] fcntl(8, F_SETFD, FD_CLOEXEC) = 0
>>> [pid 18441] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 9
>>> [pid 18441] close(3)= 0
>>> [pid 18441] fcntl(9, F_GETFD)   = 0
>>> [pid 18441] dup2(9, 3)  = 3
>>> [pid 18441] fcntl(3, F_SETFD, 0)= 0
>>> [pid 18441] close(9)= 0
>>> [pid 18441] write(3, "\25\3\1\0
>>> \232\17\205\301f>> 37 
>>> [pid 18440] exit_group(0)   = ?
>>> [pid 18441] <... write resumed> )   = -1 EPIPE (Broken pipe)
>>> [pid 18441] --- SIGPIPE (Broken pipe) @ 0 (0) ---
>>> Process 18441 detached
>>> [EMAIL PROTECTED] torque-2.3.3]#
>>>
>>>
>>> I have asked torque users mailing list, but since the problem is
>>> related strictly to CentOS 5.2 64bit, I thought I would go ahead and
>>> ask here.
>>>
>>> Any help is appreciated.
>>>
>>> Thanks,
>>>
>>> Daniel
>>>
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> http://lists.centos.org/mailman/listinfo/centos
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 
> 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos