Launch gprolog with sh

Paolo Parise <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <CAEirbrV3T77Pg153j7hdSKAmsQhs+PtLcp6-rKQ_6uj0M5+oEQ@mail.gmail.com>
Hi,

I'm writing a script (.sh) which should launch gprolog, load a file (
wumpusMind.pl <http://name.pl/>) and the initial query (init) in the same
file which is in the form:

init :-
    retractall(counter(_)),
    ...

but there's something wrong (it seems in the consulting of name.pl):
gprolog --consult-file wumpusMind.pl --entry-goal 'init, nl'
(error message:)

paolo@paolo-PC-Ubuntu:~/Desktop$ sh lauch.sh
GNU Prolog 1.3.0
By Daniel Diaz
Copyright (C) 1999-2007 Daniel Diaz
warning: command-line goal 'init, nl' caused exception:
error(existence_error(procedure,init/0),'command-line')
| ?-

Manually I do the follow:
gprolog
| ?- [name]
| ?- init.
... processing

Have you got a clue?

Thanks in advance!

Paolo P.

_______________________________________________
Users-prolog mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/users-prolog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.