Shebang support...

Steve641 <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
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
following:


GNU Prolog 1.4.0
By Daniel Diaz
Copyright (C) 1999-2011 Daniel Diaz
compiling /home/user/scratch/script.pl for byte code...
/home/user/scratch/script.pl 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: http://old.nabble.com/Shebang-support...-tp32050963p32050963.html
Sent from the Gnu - Prolog - Users mailing list archive at Nabble.com.
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.