Hanson, Rob wrote:
> You have it slightly wrong...
>
> print $hashref{'disks'}->{'io'};
Nope. That references a member of the %hashref hash. He wants
print $hashref->{disks}{io};
>
> ...And the quotes are optional (usually)...
>
> print $hashref{disks}->{io};
>
> > Is there a more generic
On Tue, 9 Sep 2003 14:39:58 -0400, "Li, Kit-Wing" <[EMAIL PROTECTED]> wrote:
> This may not be the right thread but I'd like to see if someone could point
> me to the right direction. I'm writing a CGI script to show current
> performance of the A
You have it slightly wrong...
print $hashref{'disks'}->{'io'};
...And the quotes are optional (usually)...
print $hashref{disks}->{io};
> Is there a more generic mailing list
> for the different perl modules?
Thare are other lists/newsgroups, but most are geared to specific port
(ActiveState),
This may not be the right thread but I'd like to see if someone could point
me to the right direction. I'm writing a CGI script to show current
performance of the Apache server and I'm using Linux::stat to get the disk
IO for example. I can seem to access the value of the hash reference(see
below
On Monday, Sep 8, 2003, at 22:57 US/Pacific, Greenhalgh David wrote:
[..]
I refer you to the answer I received from Drieux to (almost) exactly
the same question.
---Drieux's code---
#!/usr/bin/perl -w
use strict;
use Fcntl qw/O_CREAT O_RDWR O_EXCL O_RDONLY/;;
my $
On Tue, 9 Sep 2003 05:57:44 +
[EMAIL PROTECTED] (Greenhalgh David) wrote:
>
> On Tuesday, September 9, 2003, at 02:04 AM, Alejandro Chavarria -
> CyPage wrote:
> if you want your CDGI to be able to read from a file, then so can
> everyone else. In that case, the best you can do is remove w
On Mon, 8 Sep 2003 18:04:44 -0800
[EMAIL PROTECTED] (Alejandro Chavarria - Cypage) wrote:
> Does anyone know
> of a way, where I can not allow ANYONE to view that text file, but
> still let the program write to it?
It appears there is a misunderstanding of what permissions mean. I
suggest that y
On Tue, 9 Sep 2003 05:57:44 +
[EMAIL PROTECTED] (Greenhalgh David) wrote:
>
> On Tuesday, September 9, 2003, at 02:04 AM, Alejandro Chavarria -
> CyPage wrote:
> if you want your CDGI to be able to read from a file, then so can
> everyone else. In that case, the best you can do is remove w
I've never done it personally, but off-hand (assuming that chmod 444
won't work) I'd suggest you may want to look into using sudo (for
*nix). With sudo you could give the www user permission to become root
only when executing that one command that writes to the file. You'd
have to use a system call