how to query goal in OS shell ?

czsq888 <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
Using swi-prolog, i can use `swipl -q -f foo.pl -g "bar(1,2)." -t halt` to
 query goal from OS shell. How to do the same thing using gnuprolog ?
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-8859-7
Content-Transfer-Encoding: base64
X-CM-TRANSID:D8CowED5cE9tmcZRxro0DQ--.1050S2
X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73
	VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxU2KZXUUUUU
X-CM-SenderInfo: pf2v1miyy6il2tof0z/1tbivxRFz1D+Ns7oxAAAsb

ZV4o8C5pKSArIDEgPSAwDQo=
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.