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

Home » Public Forums » archive » Re: IDL, scripts and command line arguments?
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, scripts and command line arguments? [message #29990] Sun, 31 March 2002 11:59 Go to previous message
Ken Mankoff is currently offline  Ken Mankoff
Messages: 158
Registered: February 2000
Senior Member
Sorry to reply to my own post, but I found a bug.
My code allows you to issue an IDL command like this:

IDL> a = 42 ; comment & b = 43
And this is technically outside the scope of IDL, as *everything*
after a ; is supposed to be ignored as a comment. So, below is the
revised (and much shorter) idl_argv.pl script:

#! /usr/bin/perl
open( IDL_FILE, ">idl.$$.pro" );
print IDL_FILE "$ARGV[0]\n";
close( IDL_FILE );
system( "idl idl.$$.pro" );
system( "/bin/rm idl.$$.pro" );
exit(0);
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: idlde on mswin vs unix
Next Topic: map_grid and western longitudes

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

Current Time: Fri Oct 10 10:51:14 PDT 2025

Total time taken to generate the page: 1.59669 seconds