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

Home » Public Forums » archive » Re: how can i call a compiled fortran code 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: how can i call a compiled fortran code from IDL? [message #33939 is a reply to message #33938] Thu, 06 February 2003 10:09 Go to previous messageGo to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
mads wrote:
>
> hi all,
> what if i have to use,
> spawn, 'c:\hi\what to do now\something.exe'
> now the space that is in "what now" causes a problem. Thats the reason i was
> against spawning. i can solve that by just moving all the files into the
> working directory and just use
> spawn,'something.exe'
> thats how i have solved the problem now

Then your problem is with the command line you're using, not with spawn
itself. Would the command

c:\hi\what to do now\something.exe

work at a command line in a DOS window? It's been a long time since I've
used a DOS/Windows machine at that level, but naively I'd expect it to
try to run a program named 'c:\hi\what', passing to it the argument list
"to do now\something.exe". If that is what you want to do, then it
should work equally well in the IDL spawn command. However, if there is
no program named c:\hi\what, then you're going to have problems.

In Unix, if you have a directory name with spaces in it, you easiest way
to refer to it is by using escape characters:

c:/hi/what\ to\ do\ now/something.exe

However, that obviously depends upon the fact that Unix uses '/' for
it's directory delimiter, not '\'. I don't remember what the
corresponding workaround is for DOS/Windows.

--
James Kuyper
MODIS Level 1 Lead
Science Data Support Team
(301) 352-2150
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Postscript output mods
Next Topic: Re: XROI in IDL5.6 on MAC OS 10.2?

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

Current Time: Sat Nov 29 06:55:30 PST 2025

Total time taken to generate the page: 0.80392 seconds