[webmin-devel] Progressive commands
David Drayton <[email protected]> Wed, 21 Oct 2009 15:34:18 +1100
| Newsgroups | gmane.comp.web.webmin.devel |
|---|---|
| Message-ID | <6E1EF9B8F760F345A3EBFF5F651184CA0BB4EFB00A@T1EXC01D0.pulsemining.com.au> |
Hey guys,
I have to run a command that:
a) displays progressive output as it runs, and
b) continues to run, even if the user moves to another page
I have tried the code below, which satisfies (a) but I noticed that when I went to another page, it would stop running and so doesn't satisfy (b) as well. Note that I am only using ping as a test.
open(CMD, "ping 127.0.0.1 2>&1 |");
while(<CMD>) {
print $_;
}
close(CMD);
Cheers,
David
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel