[Top][All Lists]

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

Launch gprolog with sh

From: Paolo Parise
Subject: Launch gprolog with sh
Date: Fri, 30 Mar 2012 09:43:07 +0200


I'm writing a script (.sh) which should launch gprolog, load a file ( and the initial query (init) in the same file which is in the form:

init :-

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

address@hidden:~/Desktop$ 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:
| ?- [name]
| ?- init.
... processing

Have you got a clue?

Thanks in advance!

Paolo P.
reply via email to

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