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

Home » Public Forums » archive » Re: print to a variable
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: print to a variable [message #5261] Fri, 24 November 1995 00:00 Go to previous message
Frank J. �ynes is currently offline  Frank J. �ynes
Messages: 17
Registered: February 1995
Junior Member
dwu@larry.cc.emory.edu (Ding Wu) wrote:
> C R Shaw (C.Shaw@qub.ac.uk) wrote:
>
> : Have you tried the JOURNAL command??
> : --
>
> JOURNAL can record all the commands and the print results,
> but cannot save everything on the screen, such as help
> results.
>
> Thank you anyway.
> --
> Ding Wu

If I understand you correctly, you want to log everything, i.e. both
stderr and stdout, to a file during your idl session.

If you start idl via an xterm, the simplest is probably to enable
logging. Something like
xterm -l -lf logfile -e idl &

will start idl in an xterm, and everything will be logged to the file
logfile.

This is for "my" xterm. The flags -l and -lf may not be the same
on your xterm.

To run it in your current window, you could redirect stderr to stdin
and then use tee to log to a file:
idl 2>&1 | tee logfile
(this is valid for sh, bash, ....)

But beware, I'm not sure if the terminal window output will
keep its nice default formatting. You need to try it yourself.

--
/* Frank J. �ynes | frank@spacetec.no /*
/* Spacetec a.s | Phone: +47 77684500 Fax: +47 77655859 /*
/* Prestvannv. 38, | /*
/* N-9005 Troms�, Norway | (...with the bravery of being out of range!) /*
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Representing graphs in IDL
Next Topic: Read Hex numbers

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

Current Time: Fri Oct 10 21:59:37 PDT 2025

Total time taken to generate the page: 0.08461 seconds