Yes. This is what I did but I'm not happy with it.
I thought that we can "pipe" the output and "open" it without temporary
file.
Thanks
Hue
[EMAIL PROTECTED] wrote:
> You have to dump the results of the system command to a file like:
> (system "rm -f psresults.txt")
> (system "ps -ef > psresults.txt")
>
> Then do an open and read the file like:
>
> (open psresults.txt PSFile "r")
>
> (bind ?x (read PSFile))
> OR
> (bind ?x (readline PSFile))
>
> Hope this helps
>
> "Hue Le" <[EMAIL PROTECTED]>@sandia.gov on 05/07/2001 12:43:34 PM
>
> Please respond to "Hue Le" <[EMAIL PROTECTED]>
>
> Sent by: [EMAIL PROTECTED]
>
> To: [EMAIL PROTECTED]
> cc:
> Subject: JESS: How to "system" command
>
> Hi,
> How to translate this Perl
> open(PS,"ps -ef |")
>
> I try to use "system" command but it didn't work
> like (bind ?ps (system ps -ef))
> Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the
> list (use your own address!) List problems? Notify
> [EMAIL PROTECTED]
> ---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------