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

Home » Public Forums » archive » Re: IDL with command line like input, (in EFTS -EUMETSAT)
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: IDL with command line like input, (in EFTS -EUMETSAT) [message #51922 is a reply to message #51907] Mon, 11 December 2006 06:44 Go to previous message
Jo Klein is currently offline  Jo Klein
Messages: 54
Registered: January 2006
Member
Hi Remko,
An easy way to do this would be to use a batch command and a wrapper
script. Since command_line_args aren't available in older IDL versions
and you can't pipe in your commands with Windows versions (I still have
hopes that, one day, we'll have command line IDL for Windows), it may be
easiest to first copy (or move) the data EFTS generates to a
prespecified file name and run an IDL batch file with that file name
hard-coded.
So, you'd have a wrapper script wrap.bat that would go like this:
@ECHO OFF
COPY /Y %1 C:\MYDATA.DAT
START /WAIT IDLDE @mybatch.pro
COPY /Y C:\MYOUTPUT.DAT %1
This would put the data into some place for IDL, wait for it to finish,
and overwrite the data generated by EFTS with IDL's output (in case you
want to import the results back into that programme - I have no idea
what EFTS does).

mybatch.pro would contain something like
.run MYPROGRAM.PRO
EXIT,/NO_CONFIRM

I realise this is a bit through the nose, maybe someone else can provide
a more elegant solution.
Hope this helps,
Jo
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: idlde called from other scripts
Next Topic: Re: Record keeping

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

Current Time: Sun Oct 12 04:40:04 PDT 2025

Total time taken to generate the page: 1.28026 seconds