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

Home » Public Forums » archive » Help with SPAWN
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: Help with Spawn [message #61569 is a reply to message #61482] Fri, 18 July 2008 10:24 Go to previous messageGo to previous message
jeffnettles4870 is currently offline  jeffnettles4870
Messages: 111
Registered: October 2006
Senior Member
On Jul 18, 10:17 am, Vince Hradil <hrad...@yahoo.com> wrote:
> On Jul 18, 8:48 am, "Jeff N." <jeffnettles4...@gmail.com> wrote:
>
>
>
>> On Jul 18, 7:23 am, alex...@gmail.com wrote:
>
>>> Hello everybody. My question is simple, yet I haven't found a
>>> satisfying answer in the various guides.
>
>>> I'm using spawn to call for an executable file under the Windows OS,
>>> it oppens a command window and executes there. The problem is, very
>>> quickly I get an error and the entire command shell closes
>>> momentarily. I'd want  to be able to see the error it presents before
>>> closing the shell, or just leave it open.
>
>>> Is this possible? Is there any other way around it?
>
>>> Thanks a lot for any help, Alex
>
>> Another trick i do a lot is just print out the command that you're
>> going to spawn using a print statement, then open up your own command
>> window and paste in that command.  The command shell isn't going to
>> close when you do that, and I often find it's easier to fix whatever
>> mistakes i've made with the command i'm trying to issue in the actual
>> command window then go back to my IDL program and make sure it spawns
>> the fixed command.
>
>> Jeff
>
> How about using the LOG_OUTPUT keyword?  Simple is good...

I've actually had that keyword not work for me a few times. It's
always been when the program i've tried to spawn was not an OS command
(e.g., dir, cd, etc.), and i think it was also a program where the
output wasn't outputting one line of text for each iteration but
rather doing a sequence like print output/clear screen/print output/
etc....

This was a long time ago and a minor issue so i just did the cut-and-
paste-the-spawn-string trick i mentioned earlier and then moved on :)
It would be good to know, though, if this is something anyone else has
run into...
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: plot,lat,lon
Next Topic: Re: plot,lat,lon

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

Current Time: Sun Oct 12 12:14:27 PDT 2025

Total time taken to generate the page: 1.51957 seconds