From: Diego M. <dmo...@ya...> - 2002-08-02 16:13:09
|
Jamie, exactly, the process does produce alot of output in the shell. sometimes hours of output. So I should use the following command? system("/usr/local/excute/fire >/dev/null 2>&1 </dev/null &"); Diego --- Jamie Cameron <jca...@we...> wrote: > Support wrote: > > > Hello, > > > > Additional information regarding "running process > from webmin - > > times-out?" question > > > > the process actually only runs for about > 6:55-6:56 minutes then freezes > > until I "kill -9" the process. > > > Does this process produce a lot of output when you > run it from the > shell prompt? > > > > the parent process is: > > > > > /usr/bin/perl-w/usr/local/lib/webmin/howdy_index/c.cgi > .... > > > > shouldn't it be running under /sbin/init ... > > > No, because webmin is still waiting for output from > the > process as you are running it within backquotes. For > a long-running > command, it may be better to put it in the > background with > code like system("/usr/local/excute/fire >/dev/null > 2>&1 </dev/null &"); > assuming you don't want to get the output. > > - Jamie > > > > > > > > Diego > > > > > > > > > > > > ----- Original Message ----- > > > > From: Support <mailto:su...@ea...> > > > > To: web...@li... > > <mailto:web...@li...> > > > > Sent: Thursday, August 01, 2002 2:43 PM > > > > Subject: running process from webmin - > times-out? > > > > Hello, > > > > I am developing a module, which runs a unix > program. The progam > > works fine from unix shell, or from Webmin if > the process is short. > > After about 20 minutes I notice that the > process is still running, > > but is not doing anything "idle" or frozen, > and i must kill the > > process. If I leave the computer overnight, I > come back to " no > > more SWAP space" errors, the computer locked > and must restart. > > > > I am using the following command "my > > $results=`/usr/local/excute/fire`;" > > > > > > > > what am i doing wrong? > > > > > > > > thanks, > > > > > > > > Diego > > > > > > > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > - > Forwarded by the Webmin development list at > web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com |