Running Prolog Sicstus through a shell file -


i've been trying run file through shell script , write output file.

the script simple:

/usr/local/sicstus4.1.1/bin/sicstus -l run --goal "runh('examples/calls_matlab.pl', s), halt." > "/users/andrew/dropbox/ip/modelling phase/rules.txt"

however, when run this, fails following error: sicstus(24883,0x7fff70916ca0) malloc: * error object 0x10082b408: incorrect checksum freed object - object modified after being freed. * set breakpoint in malloc_error_break debug

on other hand, if remove "halt" goal, everything's fine, sicstus still running.

is there way exit sicstus, without having incur error above through shell script?

i appreciate time.

andreas

what if run script , redirect input pipe /dev/null ? , remove halt option.

/usr/local/sicstus4.1.1/bin/sicstus -l run --goal "runh('examples/calls_matlab.pl', s)." > "/users/andrew/dropbox/ip/modelling phase/rules.txt" < /dev/null

what did sicstus -l my_file.pl --goal "test_strategy(10,random,random)." < /dev/null

where test_strategy predicate returns shell.

cheers, dan


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -