My other computer runs Mint Linux and Python 2.7.2+, the text shown in the first post returns the correct output followed by 0 whist on the Pi it only shows the 0 (sorry the earlier 512 was erroneous), why the difference. I'm typing in the interpreter on both and the Pi runs version 2.7.3rc2.
By the way i short typed the code earlier before that confuses anyone. the actual code is.
- Code: Select all
os.system ("nbtscan -e 192.168.1.1-100")
If however i type:
- Code: Select all
os.system ("nbtscan -e 192.168.1.1-100") > /home/pi/nbt.txt
Then i get the text file with the correct info inside, but still can't understand why the difference between the two nearly identical python versions. How do i get the interpreter to show the output on the Pi like it does on the Mint box?
To be honest this is the first time i have used the interpreter, i usually use Geany and that is probably what i shall go back to, this was just a quick way to test things out. Typing the same command into Geany on the Pi and running from there opened up a terminal and showed the results as it should.
I guess the problem all along is just my lack of experience with the interpreter.
Cheers, Hiro.
PS Is the interpreter worth persevering with for any reason or should i go back to Geany?