I use Tprocess to excute Apache start/stop, mysql start/stop ...
there are 2 comboboxes to choose apache or mysql and to choose start or stop
thre is a passwordfield to enter rootpassword
the commandline:
echo " :?: " | su -c "/etc/init.d/apache start"
:?:= text in passwordfield
But apache doesn't start.
if modify the commandline to: kdesu -c "/etc/init.d/apache start"
apache does start. (But rootpassword is ask every time i start or stop a programm)
When i type
echo "mypassword" | su -c "/etc/init.d/apache start"
in the konsole* apache doesstart,too.
*=I know i shouldn't do that
What is wrong :?: :?:
Any ideas to realize programm :!: :idea: :!:
Is there any where a better documentation for Tprocess as
http://lazarus-ccr.sourceforge.net/kb/ :?: :?: