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

Home » Public Forums » archive » Re: redirecting output
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: redirecting output [message #40163] Fri, 16 July 2004 13:28 Go to previous message
cedricl is currently offline  cedricl
Messages: 8
Registered: July 2004
Junior Member
kl_tah@hotmail.com (KL) wrote in message news:<9af2bc14.0407151757.3142ab13@posting.google.com>...
> Hi,
> anyone know how I can redirect output from the idl command line to a file?
>
> eg. if idl understood unix style redirect, this might look something like
>
> IDL> print, structure.name > filename

You can call a function from the Unix prompt with:

somehost% IDL somefunction

I think that you should be able to redirect the output with a >.
Otherwise, use printf "somefunction, someparameters" | IDL >
output.txt (or something like that). If you don't follow the IDL rule
of one function per file, you can write your tasks in a batch file,
and have it run with

printf "@mybatch" | IDL

In the file mybatch, you can compile functions as you wish with .comp.

It's a little complicated, but I've researched alternatives and
haven't found any. BTW, this is also how I automate the queueing of
IDL commands to run in the background as separate IDL processes, using
at.

HTH,

Cedric
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Broyden's method
Next Topic: change in syntax for version 6?

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

Current Time: Fri Oct 10 23:05:26 PDT 2025

Total time taken to generate the page: 1.27971 seconds