|
|
Re: S: catching the output of help,/mem into variable-programm ??? [message #8099 is a reply to message #7980] |
Sun, 02 February 1997 00:00  |
Peter Mason
Messages: 145 Registered: June 1996
|
Senior Member |
|
|
On 28 Jan 1997, HSR Sys-Admin wrote:
> I want to catch the output of help,/mem in an variable...
> is that possible...
> ???
Yes, it's possible, but you have to be really, really keen...
HELP,/MEM doesn't even write its output to a JOURNAL file, so the only
way I can think of to catch its output is to redirect stdout when you
start IDL, e.g., idl > delete.me
Then you'd have to open delete.me (read only) and search for and parse
HELP,/MEM's output. (It might help to PRINT something just before you
issue HELP,/MEM, to make its output easier to find. Also, setting !QUIET=1
might help to reduce the amount of junk to search through.)
I mean, it's a daft solution, but there it is.
Peter Mason
|
|
|