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

Home » Public Forums » archive » Re: Starting idl quietly
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Starting idl quietly [message #7840] Thu, 09 January 1997 00:00
Marty Ryba is currently offline  Marty Ryba
Messages: 16
Registered: May 1996
Junior Member
Martijn Dashorst wrote:
> I was wondering if it is possible to start IDL quietly. I start
> IDL from within a c-program using a pipe and nomatter what I
> tried to do, IDL messes up my terminal window...
> I tried: fp=popen('idl > idl.txt','w') but that doesn't do the
> trick, and I couldn't find any startup options which would
> disable the startup message....

The hint about redirecting standard error as well will work; on the
other hand, maybe you should look into using the "Callable IDL" feature
present from v4.0 on up. Get the "IDL Advanced Development Guide" from
RSI for instructions in how to use it. One advantage of Callable IDL is
you won't need to use temporary files to retreive IDL output back into
your program; you access the variables directly.

--
Dr. Marty Ryba | Of course nothing I say here is official
MIT Lincoln Laboratory | policy, and Laboratory affililaton is
ryba@ll.mit.edu | for identification purposes only,
| blah, blah, blah, ...
Re: Starting idl quietly [message #7842 is a reply to message #7840] Wed, 08 January 1997 00:00 Go to previous message
f055 is currently offline  f055
Messages: 29
Registered: April 1995
Junior Member
In article <32D2302B.3296@nicole.sis.nl>, Martijn Dashorst <m.w.e.dashorst@nicole.sis.nl> writes:

-I was wondering if it is possible to start IDL quietly. I start
-IDL from within a c-program using a pipe and nomatter what I
-tried to do, IDL messes up my terminal window...
-I tried: fp=popen('idl > idl.txt','w') but that doesn't do the
-trick, and I couldn't find any startup options which would
-disable the startup message....

I believe the startup message is sent to 'standard error', but the
'>' only redirects 'standard output'. Try redirecting both. Under
UNIX with the C-shell, try idl >& idl.txt
In fact, if you don't want the output at all, send it to the null
device by using idl >& /dev/null

Hope that helps

Tim

......................... Dr Tim Osborn . t.osborn@uea.ac.uk
.... ___/.. __ /.. /.. /. Senior Research Associate . phone:01603 592089
... /..... /. /.. /.. /.. Climatic Research Unit . fax: 01603 507784
.. /..... __/.. /.. /... School of Environmental Sciences.
. /..... /\ ... /.. /.... University of East Anglia .
____/.._/..\_..____/..... Norwich NR4 7TJ .
......................... UK .
Re: Starting idl quietly [message #7843 is a reply to message #7842] Wed, 08 January 1997 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Martijn Dashorst wrote:
>
> Hi!
>
> I was wondering if it is possible to start IDL quietly. I start
> IDL from within a c-program using a pipe and nomatter what I
> tried to do, IDL messes up my terminal window...
> I tried: fp=popen('idl > idl.txt','w') but that doesn't do the
> trick, and I couldn't find any startup options which would
> disable the startup message....
>

You need to redirect the standard error as well, as the intro
text goes there. Try fp=popen('idl >& idl.txt','w') or even
fp=popen('idl >& /dev/null','w').

Dave
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2200
La Jolla, CA 92037
[ UCSD Mail Code 0949 ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: JAVA bindings to RSI IDL
Next Topic: New IDL Web resource

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

Current Time: Wed Oct 08 15:49:00 PDT 2025

Total time taken to generate the page: 0.00624 seconds