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

Home » Public Forums » archive » Re: How to save output log by profiler
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: How to save output log by profiler [message #49367] Wed, 19 July 2006 00:03
peter.albert@gmx.de is currently offline  peter.albert@gmx.de
Messages: 108
Registered: July 2005
Senior Member
Hi,

under Linux, an alternative would be to use the "screen" command to log
the complete IDL session and afterwards grep the output generated by
IDL's "save" command out of the logfile. In a nutshell, it would work
like this:

(I'll use "$" as Linux prompt, "IDL> " for the IDL prompt and "<....>"
for comments )

$ screen
<Now the "screen" splash screen appears, and you have to press Space or
Return. Having done this, you are back on the Linux Prompt>

<Now we want to start logging, therefore you have to press "<ctrl> a",
followed by "<shift> h". A message should appear at the bottom of the
shell, saying "Logfile screenlog.0 created">

<Now you can satrt IDL as usual>

$ idl

IDL> ; Now in the IDL session you can do whatever is necessary, and
IDL> ; at one point there will come the
IDL>
IDL> save, /verbose
IDL> ; Now we can exit IDL
IDL> exit

< And we exit the screen session, thereby closing the logfile>

$ exit

<Now you just want to fetch "save"'s output from the logfile:

$ grep "% SAVE:" screenlog.0


Well, that sounds complicated, but it's not. Just give it a try if you
like.

Cheers,

Peter


>
> Ah, I see. You want to save the output of the VERBOSE keyword to SAVE? I
> don't think there is a straightforward way to do this. My suggestion
> would be to just save the file with SAVE, then use IDL_Savefile to query
> the savefile for the information that you would get with the VERBOSE
> keyword. I'll see if I can give an example later, but I have to run now...
>
> Mike
> --
> www.michaelgalloy.com
Re: How to save output log by profiler [message #49371 is a reply to message #49367] Tue, 18 July 2006 07:15 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
Boto wrote:
> thank you Michael Galloy
>
> profiler,/report,output=out
>
> that works good!
>
> BUT
>
> save,~~~,/verbose
> ------------------------------------------------------------ ---------
> VERBOSE
> Set this keyword to print an informative message for
> each saved object.
> ------------------------------------------------------------ ---------
>
>
> In the save procedure, there is no output keyword.
> What I want to do is recording log by verbose keyword.

Ah, I see. You want to save the output of the VERBOSE keyword to SAVE? I
don't think there is a straightforward way to do this. My suggestion
would be to just save the file with SAVE, then use IDL_Savefile to query
the savefile for the information that you would get with the VERBOSE
keyword. I'll see if I can give an example later, but I have to run now...

Mike
--
www.michaelgalloy.com
Re: How to save output log by profiler [message #49372 is a reply to message #49371] Tue, 18 July 2006 07:00 Go to previous message
snfinder@naver.com is currently offline  snfinder@naver.com
Messages: 35
Registered: August 2005
Member
thank you Michael Galloy

profiler,/report,output=out

that works good!

BUT

save,~~~,/verbose
------------------------------------------------------------ ---------
VERBOSE
Set this keyword to print an informative message for
each saved object.
------------------------------------------------------------ ---------


In the save procedure, there is no output keyword.
What I want to do is recording log by verbose keyword.

Boto :-)
Re: How to save output log by profiler [message #49373 is a reply to message #49372] Tue, 18 July 2006 06:38 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
Boto wrote:
> HI~ all :-)
>
> I know a 'journal' procedure.
> But it didn't work when I use profiler,/report and save, ~~ ,/verbose.
>
> Please give a tip, gurus~!
>
> Ah~ I'm working on linux machine.
> I want to save logs to a file like as what journal works.

The OUTPUT keyword is handy for that. So:

IDL> profiler, /report, output=out
IDL> save, out, /verbose

Mike
--
www.michaelgalloy.com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Tutorial Using idl in java applications???
Next Topic: Surface Plots

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

Current Time: Wed Oct 08 15:11:23 PDT 2025

Total time taken to generate the page: 0.00859 seconds