I am wrapping a Python wrapper script to "wc -l" (count lines) of a list of IP addresses
******************************************* import subprocess IPcount = subprocess.call(['wc -l file.txt | awk \'{print $1}\''], shell=True) print "You have",IPcount,"IP addresses that are alive." ******************************************* I get the following output ******************************************* 46 You have 0 IP addresses that are alive. ******************************************* Why does IPcount not equal 46? Is this what the stout is for? _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor