[Orca-dev] procallator problem

Mike.Kent at indystar.com Mike.Kent at indystar.com
Wed Nov 23 13:54:40 PST 2005


Yes, that seems to fix it, thanks!

With Fedora standard installs, split lines will be common.




Guilherme Chehab <guilherme_chehab at yahoo.com> 
Sent by: orca-dev-bounces+mike.kent=indystar.com at orcaware.com
11/23/2005 02:44 PM

To
Mike.Kent at indystar.com, orca-dev at orcaware.com
cc

Subject
Re: [Orca-dev] procallator problem






Mike,

The issue is that procallator is not prepared to parse information on a 
mount
point using more than on line.

That happens because by default the df command splits the result in two 
lines
when there are large device names -- wich are somewhat unusual in Linux.

Anyway, I believe that a quick fix would be use the command:
"df -lkP" instead of "df -lk". 

That asks the df to use only one line per mount point regardless of the 
size of
the device names.

I am not able to test it since none of my production machines have  long 
device
names.

So, I would be nice if you could test this workaround (changing the 
command on
procallator.pl) and let me know if this works so we can update the 
subversion
with this fix.

regards,
Guilherme


--- Mike.Kent at indystar.com escreveu:

> I'm using orca-0.27 in Fedora 4. I gave up on trying to install orca 
> itself and used procallator.pl. But I've run into the same problem 
> outlined by Guilherme at 
> http://www.orcaware.com/pipermail/orca-dev/2003-July/000391.html.
> 
> However, unlike the solution there, which was to change df -k in 
> procallator.pl to df -lk to return only local mounts, in Fedora 4 local 
> mounts are split, like this:
> 
> Filesystem           1K-blocks      Used Available Use% Mounted on
> /dev/mapper/VolGroup00-LogVol00
>                       32313200  15208968  15436344  50% /
> /dev/ida/c0d0p1          98747     39659     53989  43% /boot
> /dev/shm                517284         0    517284   0% /dev/shm
> 
> Thus, procallator.pl runs but returns errors:
> Use of uninitialized value in numeric eq (==) at 
> /usr/local/bin/procallator.pl line 499.
> Use of uninitialized value in concatenation (.) or string at 
> /usr/local/bin/procallator.pl line 220.
> Argument "" isn't numeric in multiplication (*) at 
> /usr/local/bin/procallator.pl line 499.
> 
> So how can I fix this?> _______________________________________________
> Orca-dev mailing list
> Orca-dev at orcaware.com
> http://www.orcaware.com/mailman/listinfo/orca-dev
> 



 



 
 
_______________________________________________________ 
Yahoo! Acesso Grátis: Internet rápida e grátis. 
Instale o discador agora!
http://br.acesso.yahoo.com/

_______________________________________________
Orca-dev mailing list
Orca-dev at orcaware.com
http://www.orcaware.com/mailman/listinfo/orca-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/orca-dev/attachments/20051123/ae069163/attachment.htm 


More information about the Orca-dev mailing list