View Single Post
Old 09-01-2011, 04:52 PM   #42
kranu
I <3 my Kindle
kranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensions
 
Posts: 528
Karma: 51332
Join Date: Nov 2010
Location: United States
Device: Kindle 3G + WiFi
Quote:
Originally Posted by pconwell View Post
Kranu,

I made some slight modifications to your script. Nothing major, just makes it a little easier to see how to get the kindle to connect.

Code:
  os.system("/sbin/ifconfig | grep inet | grep -v inet6 | grep -v 127 | awk '{ sub(/inet addr:/, \"\"); print }' | awk '{ sub(/Bcast:.............../, \"\"); print }' | awk '{ sub(/M................./, \"\"); print }' | awk '{print $1,\":8000\"}' |awk '{ sub(/ /, \"\"); print }'")
... and here is the pastebin: http://pastebin.com/2zTgPLFA
Interesting. Unfortunately, this doesn't work on Windows (for obvious reasons). I have a pretty good idea for how to do it, so I'll work on it, and post a cross-compatible solution.

Update: I found a solution. I updated the program.

Last edited by kranu; 09-02-2011 at 12:27 AM.
kranu is offline   Reply With Quote