Show output of your interpreter execution on Linux using the script utility. For example,
> script output.txt (this will create a shell, with a new Linux prompt.
Everything to the screen will be copied into the file
'output.txt'.)
> sicstus
(Do your sicstus stuff).
?- halt. (leave sicstus)
> exit (leave script)
You will now see a text file 'output.txt' containing all the I/O from your session.