Hi all

I'm having a few problems porting from Windows to Linux.  I'm executing a set 
of command
line instructions in asynchronous shells. These are created as needed in a 
timer.  Under windows
the code below creates a new shell each time the timer activates and the shell 
persists until the
command executed by the shell terminates:

[timer1]
Dim sh as shell 
sh=new shell
sh.mode=1
sh.execute "meme 1.txt > out.htm"

under linux this doesn't work.  The output just registers a series of broken 
pipes as the shells
seem to be destroyed when the timer returns.  So I've moved sh to be a window 
property so
it isn't destroyed.  However while this now works for a single shell at a time 
when I try multiple
shells in parallel they again get broken pipes as the newer shells destroy the 
older shells.  
So I created a shell array as a window property, only using a shell again when 
it had completed
execution and tried:

[timer1]
sh(x)=new shell
sh(x).mode=1
sh(x).execute "meme 1.txt > out.htm"

this does ... um absolutely nothing, nothing seems to execute.  So I'm clearly 
still wrong. 
Any advice appreciated.

AP

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to