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 
Switch to threaded view of this topic Create a new topic Submit Reply
Spawn [message #61794] Thu, 31 July 2008 04:44
Joost Aan de Brugh is currently offline  Joost Aan de Brugh
Messages: 16
Registered: July 2008
Junior Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: idlworkspace trouble
Next Topic: Re: Point of intersection

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

Current Time: Thu Oct 09 23:01:45 PDT 2025

Total time taken to generate the page: 2.32145 seconds