Hello!
I have a GUI in here i made it through GTK+ Glade and in C language.
In the GUI i have a button and if i click that button i want it to call/execute this script below...
Code:
#!/bin/sh
exec >test.out
service mysqld status
if [ `awk ' /running.../ {print}' /root/Desktop/hstatus/test.out | wc -l` -eq 0 ]
then
cat stop > display
else
cat start > display
fi
after executing this command i want the contents of the file <test.out> will be display in the textview of the GUI...
pls help me..
thanks....
God Bless....