LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-29-2011, 04:37 AM   #1
mech123
Member
 
Registered: Dec 2008
Posts: 36

Rep: Reputation: 16
Pop up box on given IP


Acutally I want to write a script in which i want to open a pop-up block at given IP address.IP address can be hard-coded in script.PopUp box should display a messsage.Message can also be hardcoded in script or Ip and message can be passed as parameters to script.
 
Old 03-29-2011, 05:03 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Care to elaborate a little? Where does the input come from? Under what circumstances do you need the script to execute? What's the purpose of needing this pop-up? What kind of environment (desktop, networked, etc)?

There are several programs that can be used in scripting to pop-up simple information boxes. xdialog, kdialog, and zenity, to name the most common. It's the exact nature of how it's to be used that's the real question.
 
Old 03-30-2011, 12:03 AM   #3
mech123
Member
 
Registered: Dec 2008
Posts: 36

Original Poster
Rep: Reputation: 16
Actually script input will be IPaddress and message.
Eg. If script name is "test" then it will be executed as "./script.sh a.b.c.d displayMessage". where "a.b.c.d" is ip address of linux machine where i want pop-up box and "displayMessage" is message which we want on pop-up box.
Both linux machine will be connected.
purpose : I want to call this script through my java code,so that i can display alert message on other IP.
 
Old 03-30-2011, 05:16 AM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Well, as I said, all of the commands I gave before can easily create simple dialogs from the text you give them. They can even accept user feedback (yes/no buttons, etc.). All you have to do is read the man pages and/or do a few google searches to learn how to do build your command.

As for popping them up at various IP's, that depends on how your network is set up. If you have x-server sharing enabled, then you can simply set the command to display at that location. Otherwise you'd probably have to script it to connect via ssh or something and run the command locally. But I don't know very much about that.
 
  


Reply


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
bought RAM for Ubuntu 10.10 box - can I just pop it in or do I need to run commands? sneakyimp Linux - Newbie 8 02-21-2011 08:47 PM
Pop up box with warning cambie Linux - General 9 03-06-2008 01:53 AM
Pop-up dialogue box while using Firefox mikieboy Linux - Security 4 12-13-2006 08:10 AM
SSL pop up box tommytomato Linux - General 1 07-03-2004 06:13 AM
Qmail pop box size YourForum Linux - Software 0 11-30-2003 09:15 AM


All times are GMT -5. The time now is 12:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration