From: Jamie C. <jca...@we...> - 2003-09-09 05:04:11
|
You could use code like : $out = `/etc/init.d/spamassassin restart 2>&1`; print "Output from spamassassin was:\n"; print "<pre>$out</pre>\n"; - Jamie Larry Gilson <Li...@IS...> wrote .. > Hi Jamie, > > Could you point me to code I can use to display the output of a command > to a > web page. What I am looking to do is issue a restart of SpamAssassin and > would like to display the output. > > [dude@host user]# /etc/init.d/spamassassin restart > Shutting down spamd: [ OK ] > Starting spamd: [ OK ] > > > > > Thanks, > Larry > > > > ------------------------------------------------------- > 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 |