Author |
Message |
DPUP5520
Joined: 16 Feb 2011 Posts: 813
|
Posted: Mon 06 Jun 2011, 18:53 Post subject:
IPMonitor-0.04 Subject description: Monitor Public IP Address |
|
Simple Java application for monitoring your public IP Address, Obviously needs Java installed to use.
_________________ PupRescue 2.5
Puppy Crypt 528
Last edited by DPUP5520 on Wed 15 Jun 2011, 14:14; edited 1 time in total
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1447 Location: Ukraine
|
Posted: Tue 07 Jun 2011, 10:16 Post subject:
More efficient method |
|
Dear DPUP5520,
I think this can be done with much less overhead (80MB for java and 854k for IPMonitor), e.g.:
Code: |
#!/bin/sh
my_ipno=$(wget http://cmyip.com -qO - | grep -Ewo '\b([0-9]{1,3}\.){3}[0-9]{1,3}\b' | uniq)
gtkdialog-splash -timeout 6 -fontsize large -fg red -icon "gtk-network" -text "External IP: $my_ipno "
|
That's 205 bytes:)
With kind regards,
vovchik
PS. gtrayicon could be used to post and renew info in they tray for more a bit more elegance and minimal effort.
|
Back to top
|
|
 |
DPUP5520
Joined: 16 Feb 2011 Posts: 813
|
Posted: Tue 07 Jun 2011, 10:27 Post subject:
|
|
Awsome, thanks vovchik for the advice.
_________________ PupRescue 2.5
Puppy Crypt 528
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 12821 Location: Arizona USA
|
Posted: Wed 08 Jun 2011, 00:37 Post subject:
|
|
Vovchik's script is easy enough to use. I only had to paste it into a console window and then hit Enter.
My computer is behind a Motorola SURFboard cable modem gateway. I assume a gateway is essentially the same thing as a router. Is the IP address I get from vovchik's script the one to use with Psip? (To email to my brother so he can enter it into Psip at his end.)
|
Back to top
|
|
 |
DPUP5520
Joined: 16 Feb 2011 Posts: 813
|
Posted: Wed 08 Jun 2011, 09:44 Post subject:
|
|
@Flash
Yes
_________________ PupRescue 2.5
Puppy Crypt 528
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 12821 Location: Arizona USA
|
Posted: Wed 08 Jun 2011, 10:14 Post subject:
|
|
Thank you. I'll see if I can get him to cooperate in an experiment.
|
Back to top
|
|
 |
Geoffrey

Joined: 30 May 2010 Posts: 2346 Location: Queensland
|
Posted: Sat 11 Jun 2011, 23:38 Post subject:
Re: More efficient method |
|
vovchik wrote: | Dear DPUP5520,
I think this can be done with much less overhead (80MB for java and 854k for IPMonitor), e.g.:
Code: |
#!/bin/sh
my_ipno=$(wget http://cmyip.com -qO - | grep -Ewo '\b([0-9]{1,3}\.){3}[0-9]{1,3}\b' | uniq)
gtkdialog-splash -timeout 6 -fontsize large -fg red -icon "gtk-network" -text "External IP: $my_ipno "
|
That's 205 bytes:)
With kind regards,
vovchik
PS. gtrayicon could be used to post and renew info in they tray for more a bit more elegance and minimal effort. |
vovchik,
I like this script so simple, so I added a extra feature to it, seeing puppy has xclip, well my quirky 120 does anyway, I can add the ip-address to a clipboard and paste it with the middle mouse button.
Code: | #!/bin/sh
my_ipno=$(wget http://cmyip.com -qO - | grep -Ewo '\b([0-9]{1,3}\.){3}[0-9]{1,3}\b' | uniq)
echo "$my_ipno" > my_ipno.tmp ; cat my_ipno.tmp | xclip
gtkdialog-splash -timeout 6 -fontsize large -fg red -icon "gtk-network" -text "External IP: $my_ipno "
|
Geoffrey
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1447 Location: Ukraine
|
Posted: Sun 12 Jun 2011, 02:09 Post subject:
ip number to clipboard |
|
Dear Geoffrey,
That is a very nice and useful touch (clipboard) You could avoid the use of a temp file by changing your copy line to this:
Code: |
echo "$my_ipno" | xclip -selection clipboard
|
With kind regards,
vovchik
PS. The entire prog then looks like this:
Code: |
#!/bin/sh
my_ipno=$(wget http://cmyip.com -qO - | grep -Ewo '\b([0-9]{1,3}\.){3}[0-9]{1,3}\b' | uniq)
echo "$my_ipno" | xclip -selection clipboard
gtkdialog-splash -timeout 6 -fontsize large -fg red -icon "gtk-network" -text "External IP: $my_ipno " |
|
Back to top
|
|
 |
Geoffrey

Joined: 30 May 2010 Posts: 2346 Location: Queensland
|
Posted: Sun 12 Jun 2011, 03:04 Post subject:
|
|
vovchik
I just tried the script with your change, it doesn't seem to work for me, when I paste, it pastes what ever was in the clipboard previously.
I have tried that command before that's how I came about using " echo "$my_ipno" > my_ipno.tmp ; cat my_ipno.tmp | xclip "
as that was the only way I could get it to work by creating a tmp file.
Geoffrey
Last edited by Geoffrey on Sun 12 Jun 2011, 03:56; edited 2 times in total
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1447 Location: Ukraine
|
Posted: Sun 12 Jun 2011, 03:53 Post subject:
xclip |
|
Dear Geoffrey,
I have attached my xclip (perhaps it's different from yours). I am also running glipper and autocutsel (that weird old x11 utility that produces a small white square at the right/bottom of your monitor). Could that be the difference?
With kind regards,
vovchik
Description |
|

Download |
Filename |
xclip.gz |
Filesize |
6.58 KB |
Downloaded |
516 Time(s) |
|
Back to top
|
|
 |
Geoffrey

Joined: 30 May 2010 Posts: 2346 Location: Queensland
|
Posted: Sun 12 Jun 2011, 03:56 Post subject:
|
|
just had a look around to find the problem this seems to fix it.
Code: | echo "$my_ipno" | xclip -selection XA_SECONDARY |
Edit: tried your xclip seem to be the same file size wise anyway, still didn't work with "echo "$my_ipno" | xclip -selection clipboard"
so now the script looks like this and works ok. Code: | #!/bin/sh
my_ipno=$(wget http://cmyip.com -qO - | grep -Ewo '\b([0-9]{1,3}\.){3}[0-9]{1,3}\b' | uniq)
echo "$my_ipno" | xclip -selection XA_SECONDARY
gtkdialog-splash -timeout 6 -fontsize large -fg red -icon "gtk-network" -text "External IP: $my_ipno" |
I got the info from here http://www.cyberciti.biz/faq/xclip-linux-insert-files-command-output-intoclipboard/
Code: | "echo $my_ipno" | xclip -selection XA_CLIPBOARD" | this also works.
Edit: ok tried your original script with echo "$my_ipno" | xclip -selection clipboard
it does work but only if pasting into the terminal with the right click menu "paste" , I should have told you that I'm using Quirky 120 NOP with thunar, no rox
Geoffrey
|
Back to top
|
|
 |
Dougal

Joined: 19 Oct 2005 Posts: 2504 Location: Hell more grotesque than any medieval woodcut
|
Posted: Sun 12 Jun 2011, 10:31 Post subject:
|
|
Why not just wget echoip?
_________________ What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
|
Back to top
|
|
 |
gcmartin
Joined: 14 Oct 2005 Posts: 6730 Location: Earth
|
Posted: Wed 15 Jun 2011, 10:10 Post subject:
Trying to use IPMonitor-004 |
|
I have 2 issues that I could use some guidance on. - Where is the Log?
- And my IP changes are not signaling desktop.
Thanks in advance
Description |
Where are the LOGs kept? |
Filesize |
7.13 KB |
Viewed |
1390 Time(s) |

|
Description |
I am not getting any desktop notificaton sounds |
Filesize |
9.26 KB |
Viewed |
1276 Time(s) |

|
_________________ Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engines or use DogPile
|
Back to top
|
|
 |
DPUP5520
Joined: 16 Feb 2011 Posts: 813
|
Posted: Wed 15 Jun 2011, 12:55 Post subject:
|
|
gcmartin I'm not really sure about the sounds problem but I will send off an email to the developer to ask him, as for the log files you can find them at /root/usr/share/IPMonitor/logs/ ; also do not try to set it up as a daemon it will not work
_________________ PupRescue 2.5
Puppy Crypt 528
|
Back to top
|
|
 |
gcmartin
Joined: 14 Oct 2005 Posts: 6730 Location: Earth
|
Posted: Wed 15 Jun 2011, 13:02 Post subject:
Logs |
|
Been running on the desktop for several days. I just stopped it and got the following: Code: | ls -l /root/usr/share/IPMonitor/logs/
ls: cannot access /root/usr/share/IPMonitor/logs/: No such file or directory | Maybe I missed something along the way for proper setup or I hit a bug.
Edited: Running ICEPUP: Found them here Code: | ls -l /root/logs
total 8
-rw-r--r-- 1 root root 165 2011-06-14 23:41 2011-06-14.log
-rw-r--r-- 1 root root 179 2011-06-15 12:21 2011-06-15.log | You may want to add a note to the IPMonitor announcement Post about this feature of IPMonitor
This is a very nice and handy tool. I am now getting a picture of my ISP's pattern. The log and the alert is what make this so useful and powerful.
Hope this helps
_________________ Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engines or use DogPile
|
Back to top
|
|
 |
|