On Thu, 15 Jul 2004, Timothy Kohl wrote:
But of course, this isn't portable. It won't work on Windows -- which
was specifically asked for -- and it also won't work on OSX or various
other Unix variants.
Back to square one?
The point is, there is obviously no portable way to do this except
code a
> But of course, this isn't portable. It won't work on Windows -- which
> was specifically asked for -- and it also won't work on OSX or various
> other Unix variants.
>
> Back to square one?
>
The point is, there is obviously no portable way to do this except code
a bunch of different
> Here's some of the ones I remember. Please remember my brain is no
> better in this regard than Greg's):
>
> Filter::Simple (without which many modules below aren't possible!)
> Perl6::Say
> Perl6::Slurp
> IO::All
> IO::Prompt
> Module::Macro (not on CPAN IIRC)
I noted down at different times
Fellow Speakeasy User Mike Burns wrote:
> > If this is done under UNIX/Linux, it might be easier than you think:
just
>
> > poke around the proc filesystem and you might find that all you need is
> > really there
Hey pal, I did not guarantee it for *all*
On Jul 14, 2004, at 3:56 PM, Mike Williams wrote:
Tal Cohen wrote:
On Wed, Jul 14, 2004 at 02:05:07PM -0400, Tal Cohen wrote:
>> I need to write a script that will return how much memory (RAM) is
a
>> system as well as how much of it is being used. Can anyone assist?
One question that I have
On Wed, 14 Jul 2004, Timothy Kohl wrote:
Forwarded message:
I need to write a script that will return how much memory (RAM)
is on a system as well as how much of it is being used. Can anyone
assist?
If this is done under UNIX/Linux, it might be easier than you think:
just poke around the
--- Federico Lucifredi mumbled on 2004-07-14 23.06.01 -0400 ---
> > I need to write a script that will return how much memory (RAM) is on
> a
> > system as well as how much of it is being used. Can anyone assist?
>
> If this is done under UNIX/Linux, it might be easier than you think: just
> I need to write a script that will return how much memory (RAM) is on
a
> system as well as how much of it is being used. Can anyone assist?
If this is done under UNIX/Linux, it might be easier than you think: just
poke around the proc filesystem and you might find that all you need is
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Chris Devers
> Sent: Wednesday, July 14, 2004 4:33 PM
> To: Tal Cohen
> Cc: 'Boston.PM'
> Subject: RE: [Boston.pm] Is there a module to access memory usage?
>
>
> On Wed, 14 Jul 2004, Tal Cohen
> On Wed, 14 Jul 2004, Alex Brelsfoard wrote:
>
>> I've been trying to get CGI::SSI to work, but, near as I can tell,
>> it's not understanding the set commands or the if/else commands in
>> SSI. Do you guys have any suggestions on this one? I KNOW there has
>> to be a way
>
> I know this
On Wed, 14 Jul 2004, David Cantrell wrote:
Tal Cohen wrote:
I know, but that is what I am stuck with (besides, what is wrong with
writing platform independent code?). I could use a Windows/DOS batch
command...if I knew which one to use.
mem, I think.
Yes, this seems to work -- sort of:
% ssh
Tal Cohen wrote:
On Wed, Jul 14, 2004 at 02:05:07PM -0400, Tal Cohen wrote:
>>Hi All,
>>
>> I need to write a script that will return how much memory (RAM) is a
>> system as well as how much of it is being used. Can anyone assist?
>>
Anthony R. J. Ball wrote:
>
> `top -n 1` will spit out one
On Wed, 14 Jul 2004, Tal Cohen wrote:
Yeah, I thought of that. I was hoping for a platform independent
mechanism. If not, then I can use this type of methodology, but how do
I account for Windows based machines?
Set up SNMP on each client and write generic, cross-platform scripts
that can make
Tal,
You might have a look at Win32::SystemInfo module.
It claims to do what you need.
If the above doesn't work try to use use
Win32::TieRegistry and then extract the registry key
which contains the information about the amount of
installed memory. I assume it is either under
Tal Cohen wrote:
I know, but that is what I am stuck with (besides, what is wrong with
writing platform independent code?). I could use a Windows/DOS batch
command...if I knew which one to use.
mem, I think.
--
David Cantrell | Degenerate | http://www.cantrell.org.uk/david
[OS X] appeals to
On Wed, Jul 14, 2004 at 02:22:31PM -0400, Tal Cohen wrote:
> Yeah, I thought of that. I was hoping for a platform independent mechanism.
> If not, then I can use this type of methodology, but how do I account for
> Windows based machines?
http://search.cpan.org/search?query=Win32+memory=all
Dear Tal -
> "Tal" == Tal Cohen <[EMAIL PROTECTED]> writes:
Tal> Hi All, I need to write a script that will return how much
Tal> memory (RAM) is on a system as well as how much of it is
Tal> being used. Can anyone assist?
You may find some helpful ideas in the Nagios
I know, but that is what I am stuck with (besides, what is wrong with
writing platform independent code?). I could use a Windows/DOS batch
command...if I knew which one to use.
Tal
PS
Rude comments are always welcome...they're entertaining :D
-Original Message-
From: Anthony R. J. Ball
I will refrain from rude comment ;)
On Wed, Jul 14, 2004 at 02:22:31PM -0400, Tal Cohen wrote:
> Yeah, I thought of that. I was hoping for a platform independent mechanism.
> If not, then I can use this type of methodology, but how do I account for
> Windows based machines?
>
> Tal
>
>
> On Wed, Jul 14, 2004 at 10:13:13AM -0500, Alex Brelsfoard wrote:
>> I hate to bug you all with a perl question like this seeing as I am new
>> to
>> the group. But I'm getting kinda stuck on this one. I am simply trying
>> to read in an external html file (to be used as the header of a web
>>
Yeah, I thought of that. I was hoping for a platform independent mechanism.
If not, then I can use this type of methodology, but how do I account for
Windows based machines?
Tal
-Original Message-
From: Anthony R. J. Ball [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 2:14 PM
Here are some brief notes; I hope they're helpful to fill in gaps. If
anyone can correct any mistakes, I'll be grateful.
I've tried to not give away any punchlines, since Damian makes his
living by giving these talks; I apologize if different people think
I've given away too much, or not enough.
`top -n 1` will spit out one iteration of top that you could then
parse.
On Wed, Jul 14, 2004 at 02:05:07PM -0400, Tal Cohen wrote:
> Hi All,
>
> I need to write a script that will return how much memory (RAM) is on a
> system as well as how much of it is being used. Can anyone assist?
Hi All,
I need to write a script that will return how much memory (RAM) is on a
system as well as how much of it is being used. Can anyone assist?
Thanks,
Tal Cohen
___
Boston-pm mailing list
[EMAIL PROTECTED]
A big thanks to Damian from me as well. Always a treat.
I'm going to have to add /mxs to Impatient Perl, now.
It just seems so "right".
Unfortunately, that's about the only specific thing
I can remember from teh talk. Should have taken notes.
I was too busy laughing though. Some people have a
On Wed, Jul 14, 2004 at 10:13:13AM -0500, Alex Brelsfoard wrote:
> I hate to bug you all with a perl question like this seeing as I am new to
> the group. But I'm getting kinda stuck on this one. I am simply trying
> to read in an external html file (to be used as the header of a web page)
> and
Found the solution. It's wasn't having difficulties with the set
commends. It was having trouble reading the folllowing line:
my script didn't process anything within this if statement.
Once I removed this if statement, everythign worked out fine.
Thanks anyway. And sorry to bother.
--Alex
I hate to bug you all with a perl question like this seeing as I am new to
the group. But I'm getting kinda stuck on this one. I am simply trying
to read in an external html file (to be used as the header of a web page)
and then print it out. That sounds nice and easy. However, the header
file
Damian,
I really enjoyed the SAT talk tonight. Is it just me or were there
substantial changes from the version you gave at YAPC last month? Either
way I'm pumped up and ready to make my interfaces simpler yet more
powerful! :-)
Thanks again for your continuing presentations here in Boston.
29 matches
Mail list logo