On Fri, Jul 15, 2011 at 12:40 PM, <zachsmith...@gmail.com> wrote: > > Does anyone know how to automatically close and restart a running gambas > program? > > For example, if I have a program update available, I'd like to click a > button in my program ("Install/Run update") that would start an intermediate > program that would stop my program, then the intermediate program would > overwrite the main program with an upgraded version, then it would start the > upgraded program, and then the intermediate program would quit. The problem > is that by using the shell or exec commands a child process is created and > the parent app. never quits. > > The thing I'm looking for would be somewhat similar to what happens when you > run xfrun4 in Xfce. There, you press Alt+F2 to bring up a command entry > box, it then starts the program you have typed in and then xfrun4 quits. > There are no remaining parent/child issues.
I'm posting my own reply in case someone finds it useful. Something like this seems to do what I need: Shell "nohup galculator > process.out 2> process.err < /dev/null &" or simply, Shell "nohup galculator &" ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user