November 22nd, 2013, 02:53 PM
Newby and nslookup
when I enter nslookup 192.168.0.32 into a windows command prompt it returns the name and address of the device
When I enter the following in Python it returns 0
print os.system('nslookup 192.168.0.32')
I am looking to get the name of a device at a certain lan ip address
Can someone advise me ?
November 22nd, 2013, 03:34 PM
The zero you see is the exit status of the system command.
Look up the subprocess module, because it is the future of python. While you're doing that use os.popen
[/code] are essential for python code and Makefiles!
November 22nd, 2013, 03:50 PM