| 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   |
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
|
|
|
|