Tag Archives : python

Avoid script running multiple times by file lock

Avoid script running multiple times by file lock

Sometimes we need a single instance of a script to run at a time. Meaning, the script itself should detects whether any instances of himself are still running and act accordingly. When multiple instances of one script running, it’s easy to cause problems. I’ve ever seen that about 350 instances [...]
Query IP whois info in python

Query IP whois info in python

This is a simple python script  based on some former rwhois code. It shows us an easy way on how to get detailed information about a specific IP address: joseph@e54:~$ python ip-whois.py 94.75.214.11 ====== whois.arin.net OrgName: RIPE Network Coordination Centre OrgID: [...]
© 2006-2009 Planet Admon. All rights reserved.