comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: keeping IDL !quiet
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: keeping IDL !quiet [message #54574 is a reply to message #54573] Mon, 25 June 2007 07:35 Go to previous messageGo to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Jun 22, 8:26 pm, David Fanning <n...@dfanning.com> wrote:
> aske...@gmail.com writes:
>> This is probably a relatively simple question, but I haven't been able
>> to find it in the archives.
>
>> I'm running someone else's program inside of mine, and that program
>> foolishly prints out its results every time through. I tried using !
>> quiet=1, but that doesn't seem to shut it up. Am I right that !quiet
>> stops 'messages' and not 'print' statements? Is there anything else I
>> can do to temporarily stop all print statements?
>
> You could do a global search and replace and change
> all "print," statements to ";print,". That should
> shut it up. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Unless the print statements are "$-continued" to several lines ;-)

One could overload the print procudure, but I don't know how to
declare a procedure that takes multiple parameters. (BTW, can this be
done?)

Of course you could just use, say, 10 parameters and hope that's
enough...

pro print, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9,
arg10, _extra=extra
; do nothing
return
end
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Segmentation fault: IDL Version 6.3 (linux x86 m32)+Debian SID
Next Topic: boxplot

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 10:31:47 PDT 2025

Total time taken to generate the page: 0.72111 seconds