LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-28-2012, 02:31 AM   #1
mposwal
Member
 
Registered: Nov 2010
Posts: 35

Rep: Reputation: 0
pop up message window appear


Hi,
I am trying to make a script that when execute a message window should open with that message on gnome desktop in Ubuntu, so we can easily schedule our task time tables as pop up window open at execution time ..

Regards,
Manish
 
Old 05-28-2012, 11:24 PM   #2
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Stretch
Posts: 612

Rep: Reputation: 125Reputation: 125
Depending on your requirements, the simplest way would be to use the popup notification applet. To show a notification use the 'notify-send' command. Here's a very simply script I run to show the uptime every 5 mins:
Code:
#!/bin/bash
x=1
delay="$1"

while [ $x -eq 1 ] ; do
	notify-send -t 10000 -i ~/Azenis2.png "Uptime" "$(uptime)"
	sleep $1s
done
exit 0
If you want to have user interaction, you could try zenity, it should be installed by default in Ubuntu.
Code:
man zenity
for help.
 
  


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
issue with message pop up window rajat83 Programming 6 07-10-2008 04:03 AM
pop up a window manojg Linux - Newbie 6 03-07-2006 08:01 AM
POP-UP ERROR MESSAGE in RHWS4.0 jayfoo Linux - Software 0 09-27-2005 01:36 PM
Message Pop Up App netkepala Linux - Software 8 04-11-2004 08:38 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 > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:33 AM.

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