[Top][All Lists]

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

Shebang support...

From: Steve641
Subject: Shebang support...
Date: Tue, 12 Jul 2011 21:44:55 -0700 (PDT)

First, many thanks for the hints on my last post about 'frustrations' - all
those issues are now resolved.

I have a new one.. :confused:

I've defined the following 'she-bang' on the first line of my script
(prompted by the new features in 1.4...)

#!gprolog --consult-file

This works, in the sense that, with permissions 700, I can execute the
script as if it were a compiled executable... but... it also outputs the

GNU Prolog 1.4.0
By Daniel Diaz
Copyright (C) 1999-2011 Daniel Diaz
compiling /home/user/scratch/ for byte code...
/home/user/scratch/ compiled, 112 lines read - 48126 bytes written,
52 ms

This plays havoc when I want to pass the output to another process - such as
wc, for example, to post-process the results I get from my script.  I don't
have this problem with executables generated by gplc... Is there a way to
turn off the banner and compilation message?

View this message in context:
Sent from the Gnu - Prolog - Users mailing list archive at

reply via email to

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