Re: SPAWN in 7.1 [message #68862] |
Mon, 23 November 2009 06:23 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
david writes:
> I have a problem with the SPAWN procedure in IDL 7.1 and windows xp.
>
> When i try for example:
>
>> SPAWN,'dir ',files
>
> It reports, SPAWN:Unable to capture child process output
>
> If i try:
>
>> SPAWN,'dir '
>
> it works
>
> It seems that is not able to "collect" the result in the variable. Why?
> Anybody else has this problem?
No, I have no problem capturing output in IDL 7.1 with
Windows XP.
IDL> print, !version
{ x86 Win32 Windows Microsoft Windows 7.1 Apr 21 2009 32 64}
IDL> spawn, 'dir', files
IDL> print, files
Volume in drive C has no label. Volume Serial Number is A4A5-4936
Directory of C:\IDL
11/19/2009 04:01 PM <DIR> . 11/19/2009 04:01 PM <DIR>
..
05/13/2009 10:00 PM <DIR> .metadata 11/01/2009 09:44 AM
3,819,666 20070525092058.ps
04/22/2009 06:34 AM 83,920 69003_prof.nc 11/13/2009 12:46
PM <DIR> ActiveContour
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|