LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   GTK+ Glade (https://www.linuxquestions.org/questions/programming-9/gtk-glade-414095/)

shandy^^^ 02-11-2006 04:35 AM

GTK+ Glade
 
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....

xhi 02-11-2006 11:42 PM

there may be a quicker way
but could you send output to file X and then open X and print it to the display?


All times are GMT -5. The time now is 02:49 PM.