Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-11-2006, 05:35 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 26

Rep: Reputation: 15
GTK+ Glade


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...

exec >test.out 
service mysqld status 
if [ `awk ' /running.../ {print}' /root/Desktop/hstatus/test.out | wc -l` -eq 0 ] 
cat stop > display 
cat start > display 
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..


God Bless....
Old 02-12-2006, 12:42 AM   #2
Senior Member
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Learning C with Glade/for GTK+ J_K9 Programming 4 10-31-2005 03:21 PM
Glade / GTK 2.4 Kane635 Linux - Software 0 09-07-2004 08:53 PM
Glade, GTK problem jpostma Programming 0 07-17-2004 02:39 PM
Help with GTK and Glade autogen gtkmike Programming 0 06-13-2004 05:21 PM
Using optionmenu with Glade/GTk robw Programming 0 11-16-2003 04:38 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration