How to disable libraries' "welcome" messages?

You have problems, and we're glad to hear them. Explain the problem, what you have tried, and where you got stuck.
Feel free to share a little info on yourself and the course.
Forum rules
Please respect your teacher's guidelines. Homework is a learning tool. If we just post answers, we aren't actually helping. When you post questions, be sure to show what you have tried or what you don't understand.

How to disable libraries' "welcome" messages?

Postby anaumov » Sun Dec 11, 2016 2:12 pm

Hello,

I would like to know how to disable output of libraries' messages that SBCL shows in time of including/require these. For example, after I (require :snmp), I get this message:

Code: Select all

;;; ------------------------------------------------------------------------
;;;  Portable Threads Interface 2.3
;;;
;;;    Developed and supported by the GBBopen Project (http:/GBBopen.org/)
;;;    (See http://GBBopen.org/downloads/LICENSE for license details.)
;;; ------------------------------------------------------------------------



I want to see output of my format functions ONLY. Output of my script is an input for another system. So, I don't want to use "grep" or something like this between.
Now should use this
Code: Select all
./my_script.cl | grep -v ";"


Thank you.
anaumov
 
Posts: 10
Joined: Thu Sep 15, 2011 4:13 am
Location: Germany

Re: How to disable libraries' "welcome" messages?

Postby David Mullen » Sun Dec 11, 2016 3:54 pm

The welcome-message thing with portable-threads is mentioned here—that author's version of portable-threads has killed the message. Aside from changing the library code, you could just muzzle standard output like this:

Code: Select all
(let ((*standard-output* (make-broadcast-stream)))
  (require :snmp))
David Mullen
 
Posts: 65
Joined: Mon Dec 01, 2014 12:29 pm

Re: How to disable libraries' "welcome" messages?

Postby anaumov » Mon Dec 12, 2016 2:55 am

Thank you! Yes, it fix my problem.
anaumov
 
Posts: 10
Joined: Thu Sep 15, 2011 4:13 am
Location: Germany


Return to Homework

Who is online

Users browsing this forum: Bing [Bot] and 1 guest