[Tutor] (no subject)
Moshe Zadka
moshez@zadka.site.co.il
Sun, 08 Apr 2001 14:49:01 +0200
On Thu, 29 Mar 2001 13:01:00 -0800, Glen Bunting <Glen@ihello-inc.com> wrote:
> Let me rephrase the question. I didn't state the question very clearly. I
> am trying to write a python script on Mandrake Linux that will check the
> amount of free memory available, similar to using the 'free' command. I
> already have a script written in sh which does this by calling the free
> command, but I am trying to re-write it completely in python.
os.popen("free")
You're free to go dig around in /proc if you really want to, but
free will always know more then you do.
--
"I'll be ex-DPL soon anyway so I'm |LUKE: Is Perl better than Python?
looking for someplace else to grab power."|YODA: No...no... no. Quicker,
-- Wichert Akkerman (on debian-private)| easier, more seductive.
For public key, finger moshez@debian.org |http://www.{python,debian,gnu}.org