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

Home » Public Forums » archive » Re: spawn question
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 question [message #60610 is a reply to message #60609] Sat, 31 May 2008 04:59 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article
<33a84552-1576-4ca3-a670-3f37064bf63c@59g2000hsb.googlegroups.com>,
russ <rlayberry@hotmail.com> wrote:

> this may be a tupid question and it might be that i am an idiot,
> but...
>
> i want to spawn a process
>
> cmd='ls -l'
> spawn,cmd
>
> i am actually doing this with a GET command and it sometimes hangs
>
> if i try
>
> spawn,cmd,/nowait
>
> it tells me
>
> Keyword NOWAIT not allowed in call to: SPAWN
>
> but it says it is in the help?

/NOWAIT only works on Windows. Are you running on Unix/Linux/Mac OS?

Use the standard Unix syntax to run a procedure in the background

SPAWN, 'ls -l &', result

Of course, then you get this


IDL> spawn, 'ls -l &', result
IDL> help, result
RESULT STRING = Array[1]
IDL> print, result
[1] 4624


If you want to actually see the output of ls, you will have to run
it in the foreground

IDL> spawn, 'ls -l', result
IDL> help, result
RESULT STRING = Array[41]


Ken Bowman
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Project sav file in 7.0
Next Topic: Block selection in IDL7

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

Current Time: Sat Nov 29 09:56:43 PST 2025

Total time taken to generate the page: 0.24084 seconds