Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 24 Jul 2014, 02:47
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
IPMonitor-0.04
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Author Message
DPUP5520

Joined: 16 Feb 2011
Posts: 801

PostPosted: 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.
IPMonitor_32bit-0.04.pet
Description  32bit systems only
pet

 Download 
Filename  IPMonitor_32bit-0.04.pet 
Filesize  616.13 KB 
Downloaded  384 Time(s) 
IPMonitor-0.04.pet
Description  32bit/64bit systems
pet

 Download 
Filename  IPMonitor-0.04.pet 
Filesize  854.11 KB 
Downloaded  377 Time(s) 

_________________
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
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: 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
View user's profile Send private message 
DPUP5520

Joined: 16 Feb 2011
Posts: 801

PostPosted: Tue 07 Jun 2011, 10:27    Post subject:  

Awsome, thanks vovchik for the advice.
_________________
PupRescue 2.5
Puppy Crypt 528
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 10927
Location: Arizona USA

PostPosted: 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. Smile

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
View user's profile Send private message 
DPUP5520

Joined: 16 Feb 2011
Posts: 801

PostPosted: Wed 08 Jun 2011, 09:44    Post subject:  

@Flash
Yes

_________________
PupRescue 2.5
Puppy Crypt 528
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 10927
Location: Arizona USA

PostPosted: Wed 08 Jun 2011, 10:14    Post subject:  

Thank you. I'll see if I can get him to cooperate in an experiment. Smile
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 1322
Location: Queensland Australia ɹǝpu∩uʍop

PostPosted: 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 Very Happy
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Sun 12 Jun 2011, 02:09    Post subject: ip number to clipboard  

Dear Geoffrey,

That is a very nice and useful touch (clipboard) Smile 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
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 1322
Location: Queensland Australia ɹǝpu∩uʍop

PostPosted: 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
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: 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
xclip.gz
Description 
gz

 Download 
Filename  xclip.gz 
Filesize  6.58 KB 
Downloaded  316 Time(s) 
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 1322
Location: Queensland Australia ɹǝpu∩uʍop

PostPosted: 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
View user's profile Send private message 
Dougal


Joined: 19 Oct 2005
Posts: 2505
Location: Hell more grotesque than any medieval woodcut

PostPosted: 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
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 4077
Location: Earth

PostPosted: 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
Where is the LOG.png
 Description   Where are the LOGs kept?
 Filesize   7.13 KB
 Viewed   1057 Time(s)

Where is the LOG.png

Should I hear sound on Public IP changes.png
 Description   I am not getting any desktop notificaton sounds
 Filesize   9.26 KB
 Viewed   1010 Time(s)

Should I hear sound on Public IP changes.png


_________________
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 Engine or use DogPile
Back to top
View user's profile Send private message 
DPUP5520

Joined: 16 Feb 2011
Posts: 801

PostPosted: 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
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 4077
Location: Earth

PostPosted: 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 Engine or use DogPile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0946s ][ Queries: 13 (0.0109s) ][ GZIP on ]