bug-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gprolog


From: Bowie Owens
Subject: Re: gprolog
Date: 19 Apr 2001 08:54:10 +1000

On 14 Apr 2001 04:24:28 -0700, Martin Nad wrote:
> Hi!
> 
> Is it possible to run gprolog in command-prompt in
> unix
> somting like!
> 
> sensenet(12:20:29)@ "some kommand" happy(jean)
> 
> 
> and got the result?

So far I have been using the Bourne shell here document redirection to
get a similar effect:

gprolog <<EOF
happy(jean), !.
EOF

The cut avoids any interaction due to more than one solution. You could
easily turn this into a script if you like. However, if there is a
neater way to do this I would be interested too.


-- Bowie Owens





reply via email to

[Prev in Thread] Current Thread [Next in Thread]