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

Home » Public Forums » archive » SPAWN
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: Spawn [message #61789 is a reply to message #8682] Thu, 31 July 2008 05:38 Go to previous messageGo to previous message
mankoff is currently offline  mankoff
Messages: 131
Registered: March 2004
Senior Member
On Jul 31, 7:44 am, Joost Aan de Brugh <joost...@gmail.com> wrote:
> Hello all,
>
> I was wondering if you can navigate efficiently through directories
> with Spawn (Calling shell commands)
>
> For example:
> IDL> Spawn,"pwd"
>  <Some directory>
> IDL> Spawn,"cd .."
> IDL> Spawn,"pwd"
>  <Still same directory, because after the cd .., something is reset>
>
> I solved this problem by making an executable file which takes care of
> the directories.
> Spawn,condition?"OneFile":"OtherFile"
> And the executable file OneFile and OtherFile do the same but in a
> slightly different directory.
>
> I actually have no problem with this, but I was wondering if there is
> a nicer way to do this.
>
> Kind regards,
> Joost

You can use the internal 'cd' command in IDL:

IDL> spawn, 'foo'
IDL> cd, '..'
IDL> spawn, 'foo' ; different foo, in parent directory.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PSF Energy inside circle
Next Topic: Edge detection and convert edges into polygons

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

Current Time: Fri Oct 10 06:34:46 PDT 2025

Total time taken to generate the page: 0.80066 seconds