LinuxQuestions.org
Help answer threads with 0 replies.
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 10-18-2006, 08:38 AM   #1
jackpal
Member
 
Registered: Oct 2003
Location: Florida USA
Distribution: Fedora, RHEL
Posts: 57

Rep: Reputation: 15
GTK pop up window from a script


I'm just an admin not a real programmer but I've created a reboot script for several machines in a cluster. The script gets executed by a user at the master node. It works fine but I'd like to give him some output on the screen so he knows whats going on. The only way he will know is if he has a console open and this is not always the case. Is there a simple way to incorporate a GTK pop up window into my bash script indicating the action he took? Right now he just clicks an icon on the gnome desktop and waits. Here is my script:

for i in `cat /opt/local/app/hosts`; do
`ssh $i sudo /sbin/poweroff`
done
 
Old 10-18-2006, 10:02 AM   #2
vkmgeek
Member
 
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185
Blog Entries: 2

Rep: Reputation: 31
Hi,

I dont know but if you have KDE environment... U can fire kdialog like commands from command prompt which actually shows you the dialog...
You can try adding such commands in your script..
lemme know if it worked or how did u solve it..

Thanks,
 
Old 10-18-2006, 11:51 AM   #3
jackpal
Member
 
Registered: Oct 2003
Location: Florida USA
Distribution: Fedora, RHEL
Posts: 57

Original Poster
Rep: Reputation: 15
thanks. I found something in gnome called zenity that does what I need it to. I tried gdialog and that led me to zenity.

Last edited by jackpal; 10-18-2006 at 11:59 AM.
 
  


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
pop up a window manojg Linux - Newbie 6 03-07-2006 08:01 AM
tk pop up window is dead munichtexan Linux - Software 0 11-29-2005 09:26 PM
Pop up Window (do you know what it means) xpression Linux - Newbie 3 09-18-2005 10:16 AM
Look up record pop up window. agallant Programming 0 08-04-2004 09:25 AM
how to produce pop-up message box / alert window from shell script peb Linux - Newbie 3 02-25-2004 03:14 AM

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

All times are GMT -5. The time now is 11:02 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