Xref: utzoo unix-pc.general:761 comp.sys.att:3399 Path: utzoo!utgpu!water!watmath!uunet!lll-winken!lll-tis!ames!ncar!boulder!sunybcs!kitty!mtune!icus!lenny From: lenny@icus.UUCP (Lenny Tropiano) Newsgroups: unix-pc.general,comp.sys.att Subject: Re: How much memory is left? (Re: Swapping and wmgr) Message-ID: <378@icus.UUCP> Date: 2 Jun 88 22:54:11 GMT References: <449@bacchus> <153@elgar.UUCP> <459@bacchus> <371@icus.UUCP> <166@elgar.UUCP> Sender: nobody@sunybcs.UUCP Reply-To: lenny@icus.UUCP (Lenny Tropiano) Organization: ICUS Computer Group, Islip, NY Lines: 35 In article <166@elgar.UUCP> ford@elgar.UUCP (Ford Prefect ) writes: |> |>>Here's a short program that will tell you how much memory you have... |>> |>>$ cc -c -O memory.c |>> ... |> |>Here's an even shorter program that will tell you the same stuff; |>fancy formatting or converting into bytes is left as an excersise for |>the reader... |> |> echo 'maxmem/D |> physmem/ |> freemem/' | adb /unix /dev/kmem |> Geez. You're an *adb-guru*. I guess that's how you easily reverse engineered things like the CAPCTRL (kbd.o) driver. |> |>Of course you can't make mine setuid, but what do you want for |>nothing, Rubber Biscuits? :-) :-) |> Well if you have the version of the KSH that allows for setuid shell scripts you could ;-) Ruuuubbbber Bissscuits... (You remember that song too) :-) -Lenny -- US MAIL : Lenny Tropiano, ICUS Computer Group IIIII CCC U U SSS PO Box 1 I C U U S Islip Terrace, New York 11752 I C U U SS PHONE : (516) 968-8576 [H] (516) 582-5525 [W] I C U U S TELEX : 154232428 [ICUS] IIIII CCC UUU SSS AT&T MAIL: ...attmail!icus!lenny UUCP : ...{mtune, ihnp4, boulder, talcott, sbcs, bc-cis}!icus!lenny