Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Chris Devers
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

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Timothy Kohl
> 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

Re: [Boston.pm] Thanks Damian!

2004-07-14 Thread Federico Lucifredi
> 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

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Federico Lucifredi
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*

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Andrew M. Langmead
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

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Chris Devers
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

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Mike Burns
--- 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

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Federico Lucifredi
> 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

RE: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Joel Gwynn
> -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

Re: [Boston.pm] reading in HTML with SSI and processing in perl

2004-07-14 Thread Alex Brelsfoard
> 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

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Chris Devers
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

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Mike Williams
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

RE: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Chris Devers
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

RE: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Stefan Dragnev
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

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread David Cantrell
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

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Gyepi SAM
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

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread William Goedicke
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

RE: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Tal Cohen
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

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread 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 > >

Re: [Boston.pm] reading in HTML with SSI and processing in perl

2004-07-14 Thread Alex Brelsfoard
> 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 >>

RE: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Tal Cohen
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

Re: [Boston.pm] Thanks Damian!

2004-07-14 Thread Daniel Allen
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.

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Anthony R. J. Ball
`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?

[Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Tal Cohen
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]

Re: [Boston.pm] Thanks Damian!

2004-07-14 Thread Greg London
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

Re: [Boston.pm] reading in HTML with SSI and processing in perl

2004-07-14 Thread Gyepi SAM
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

[Boston.pm] reading in HTML with SSI and processing in perl

2004-07-14 Thread Alex Brelsfoard
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

[Boston.pm] reading in HTML with SSI and processing in perl

2004-07-14 Thread Alex Brelsfoard
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

[Boston.pm] Thanks Damian!

2004-07-14 Thread Drew Taylor
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.