Re: SPAWN and windows [message #19132] |
Mon, 28 February 2000 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Martin Schultz (martin.schultz@dkrz.de) writes:
> I am almost ready to release my IDL webmaker tool in its first
> version, but there
> are still a few things I need to clean up. One thing that bothers me
> currently is
> how Windows behaves when I spawn a command: I need to create several
> directopries and copy several files in webmaker, and for each spawned
> command, WINdows opens a DOS Window, flashes the result of the executed
> command at me and closes it again. Besides getting you close to crazy
> watching it happen on the screen, it also seems to allocate quite a few
> system resources which, apparently, are released only much later. Is
> there a way to spawn simple DOS commands without opening a window? In an
> earlier post I saw something like spawn,'start <programname>' -- would
> this help?
No, nothing will help. Having a DOS window flash
at you is a fact of life in the Windows world.
The START command (on WindowsNT at least) allows
you to spawn a process and return immediately to
the IDL command line, without waiting for the
process to exit.
> Thanks for any answer, win your EPA award!
I'm donating the award to Jim Hamell and his object
widgets page. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: SPAWN and windows [message #19133 is a reply to message #19132] |
Mon, 28 February 2000 00:00  |
Martin Schultz
Messages: 515 Registered: August 1997
|
Senior Member |
|
|
Udo Grabowski wrote:
>
> And of course, also an argument to receive the result:
>
> spawn , ['command'], /NOSHELL, result
> --
nope: can't do either in windows. And having a shell in Unix is not too
bad for my
purposes -- it won't open a window but just log it's output on the
current terminal
window (using the command line version of IDL).
Thanks anyway,
Martin
--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
|
|
|
|
|