LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


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

Rep: Reputation: 15
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....
 
Old 02-11-2006, 11:42 PM   #2
xhi
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?
 
  


Reply



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 02:21 PM
Glade / GTK 2.4 Kane635 Linux - Software 0 09-07-2004 07:53 PM
Glade, GTK problem jpostma Programming 0 07-17-2004 01:39 PM
Help with GTK and Glade autogen gtkmike Programming 0 06-13-2004 04:21 PM
Using optionmenu with Glade/GTk robw Programming 0 11-16-2003 03:38 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:43 PM.

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