prologScript problem

db <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
Hello,

I use SWI-Prolog (Multi-threaded, 64 bits, Version 6.5.3)
on Ubuntu 12.04

I have swi-prolog scripts that worked fine but
do not longer work.

As an example here is a little script
(in a file called "myscript.pl") :

---------------------------------------------------
#! /usr/bin/swipl -q -G1g -L1g -T1g -q -t main -s

main :-
         catch(goal, E, (print_message(error, E), fail)),
         halt.

main :-
         halt(1).

goal :-
         current_prolog_flag(argv, Argv),
         append(_, [--|[Number]], Argv),
         my_program(Number).
---------------------------------------------------

The problems depends on the first line I use :

1) #! /usr/bin/swipl -q -G1g -L1g -T1g -q -t main -s

     it enters in swipl and simply displays "?"

2) #! /usr/bin/swipl -q -t main -s     (no longer memory options)

	ERROR: Prolog initialisation failed:
	ERROR: script_file `13' does not exist

3) #! /usr/bin/swipl -q -t main -f     (-f replaces -s)

	ERROR: Syntax error: Operator expected
	ERROR: /
	ERROR: ** here **
         /home/my_script.pl

I do not undestand what happens.

Someone has an idea ?

Thanks a lot

Dominique
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.