Jess doesn't have this facility built in, but it's easy enough to
program in Java, either directly  or using reflection from Jess.

I think Hue Le wrote:
> 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]
> ---------------------------------------------------------------------
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

---------------------------------------------------------------------
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]
---------------------------------------------------------------------

Reply via email to