Re: shell wrapper output
Re: shell wrapper output
- Subject: Re: shell wrapper output
- From: Andreas Monitzer <email@hidden>
- Date: Thu, 27 Sep 2001 17:01:52 +0200
On Thursday, September 27, 2001, at 04:45 , Martin Kautz wrote:
I was just checking out the pref pane template in IB. Now I'd like to
write a small pane, which is starting/stopping mySQL as well as it should
show some status information of a (running) mysql daemon.
Basicly it should move that crappy shell stuff like './safe_mysqld...'
and 'ps -ax | grep mysqld' to the GUI.
I've already seen the little shell wrapper util (for wget) at
www.cocoadevcentral.com
Unfortunately this stops before sending some shell outputs to the GUI.
Does anybody know a good example for redirecting shell outputs to the GUI?
(I'm the author of that article)
Read part II, it explains how to capture the output.
Note that mysql creates a pid-file (it's /usr/local/var/<hostname>.pid
here), you don't need that ps ax-call.
andy
--
God created the universe in 6 days because He didn't have to worry about
an installed base.