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

Home » Public Forums » archive » Multiple Spawn Commands
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: Multiple Spawn Commands [message #49365 is a reply to message #49294] Wed, 19 July 2006 04:40 Go to previous messageGo to previous message
enod is currently offline  enod
Messages: 41
Registered: November 2004
Member
It seems that IDL SPAWN evokes a new SHELL and only executes one line
of comand each time, even when you write all the commands to a temp
batch file and execute it. You can put all the commands in one line
(seperated by &&) and execute it. Also, maybe you can use IDL's CD
procedure to change the working directory.

Tian

Ryan. wrote:
> Dear IDL Gurus,
>
> Is it possible to issue multiple Spawn commands in Unix IDL without
> closing the shell? What I want to do is issue a very simple foreach
> loop but i cannot call spawn long enough to input all the commands. I
> think i might have to use the Unit keyword of spawn but i'm not sure
> how it works. Due to the simplicity of what I want to do I might be
> able to do it in fewer commands in Unix but I don't have enough
> experience in Unix to know how. Any help would be greatly appreciated.
> I want the following commands issued in Unix:
>
> change to desired directory
> foreach i ( file1 file2 file3 ... )
> ...file_dump.pl -$i ...
> end
>
> To do this I have the following:
> spawn, foreachcommand
> spawn, filedumpcommand
> spawn, endcommand
>
> but this obviously does not work.
>
> Thanks,
> Ryan.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Multiple instances of usersym in legend
Next Topic: LINUX IDL Install Help

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

Current Time: Fri Oct 10 17:44:49 PDT 2025

Total time taken to generate the page: 0.07012 seconds