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

Home » Public Forums » archive » Re: launching executables from idl
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: launching executables from idl [message #30005 is a reply to message #30002] Wed, 27 March 2002 23:40 Go to previous messageGo to previous message
G Karas is currently offline  G Karas
Messages: 12
Registered: March 2002
Junior Member
or... write off a script from within IDL
save it in a file and use SPAWN with the script name:

eg

file is commands.txt

CMD = 'dothiscommand < commands.txt' ; should work in DOS as well
SPAWN, CMD

or,

CD, dir ; where dir is where your script is
filename = 'commands.script'
CMD = 'chmod 755' + filname ; for unix
SPAWN, CMD
CMD = 'command.script'
SPAWN, CMD, result
print, result ; to get you the results (txt) back in IDL

basically SPAWN is just a way to escape into the
command line from within an IDL session
What I do, is send off all the commands to a script,
then make that executable and SPAWN it. Not very
elegant, very system-dependant, but it is quick and dirty.

cheers!
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Computer freezes when IDL 5.5 tries to display an image larger than the given window
Next Topic: Re: how to pass a parameter to a .sav routine??

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

Current Time: Wed Oct 08 20:02:08 PDT 2025

Total time taken to generate the page: 0.02680 seconds