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

Home » Public Forums » archive » Re: SPAWN Problems under Windows
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
Re: SPAWN Problems under Windows [message #52127] Sat, 06 January 2007 03:40
aberte@gmail.com is currently offline  aberte@gmail.com
Messages: 8
Registered: December 2006
Junior Member
Thank you! Was that!

On Jan 6, 12:03 am, "mgal...@gmail.com" <mgal...@gmail.com> wrote:
> abe...@gmail.com wrote:
>> spawn, cmd, /LOG_OUTPUT ; works!
>> spawn, [cmd,params], /LOG_OUTPUT ; does not work :(I believe the array syntax here (i.e. [cmd, params]) is only used with
> the NOSHELL keyword set.
>
> IDL> spawn, ['ls', '-l'], /noshell
> total 0
> drwx------ 5 mgalloy mgalloy 170 Jan 5 13:14 Desktop
> drwx------ 12 mgalloy mgalloy 408 Dec 14 15:33 Documents
> drwx------ 37 mgalloy mgalloy 1258 Dec 18 13:16 Library
> drwx------ 3 mgalloy mgalloy 102 Sep 26 02:21 Movies
> drwx------ 4 mgalloy mgalloy 136 Sep 26 10:51 Music
> drwx------ 6 mgalloy mgalloy 204 Oct 31 10:46 Pictures
> drwxr-xr-x 4 mgalloy mgalloy 136 Sep 26 02:21 Public
> drwxr-xr-x 6 mgalloy mgalloy 204 Dec 1 11:27 Sites
> drwxr-xr-x 4 mgalloy mgalloy 136 Dec 1 11:28 archive
> drwxr-xr-x 2 mgalloy mgalloy 68 Oct 20 13:55 bin
> drwxr-xr-x 37 mgalloy mgalloy 1258 Dec 27 10:06 projects
> IDL> spawn, ['ls', '-l']
> Desktop Library Music Public archive
> projects
> Documents Movies Pictures Sites bin
>
> Mike
> --www.michaelgalloy.com
Re: SPAWN Problems under Windows [message #52130 is a reply to message #52127] Fri, 05 January 2007 15:03 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
aberte@gmail.com wrote:
> spawn, cmd, /LOG_OUTPUT ; works!
> spawn, [cmd,params], /LOG_OUTPUT ; does not work :(

I believe the array syntax here (i.e. [cmd, params]) is only used with
the NOSHELL keyword set.

IDL> spawn, ['ls', '-l'], /noshell
total 0
drwx------ 5 mgalloy mgalloy 170 Jan 5 13:14 Desktop
drwx------ 12 mgalloy mgalloy 408 Dec 14 15:33 Documents
drwx------ 37 mgalloy mgalloy 1258 Dec 18 13:16 Library
drwx------ 3 mgalloy mgalloy 102 Sep 26 02:21 Movies
drwx------ 4 mgalloy mgalloy 136 Sep 26 10:51 Music
drwx------ 6 mgalloy mgalloy 204 Oct 31 10:46 Pictures
drwxr-xr-x 4 mgalloy mgalloy 136 Sep 26 02:21 Public
drwxr-xr-x 6 mgalloy mgalloy 204 Dec 1 11:27 Sites
drwxr-xr-x 4 mgalloy mgalloy 136 Dec 1 11:28 archive
drwxr-xr-x 2 mgalloy mgalloy 68 Oct 20 13:55 bin
drwxr-xr-x 37 mgalloy mgalloy 1258 Dec 27 10:06 projects
IDL> spawn, ['ls', '-l']
Desktop Library Music Public archive
projects
Documents Movies Pictures Sites bin

Mike
--
www.michaelgalloy.com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: SPAWN Problems under Windows
Next Topic: Array with mixing data types

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

Current Time: Fri Oct 10 21:25:17 PDT 2025

Total time taken to generate the page: 1.03965 seconds