I have wrote the following code:
import os
def a():
take = raw_input("insert: ")
os.system("ifconfig eth0 hw ether %d") %take
a()
i get an error that unsupported operand type(s) for %: 'int' and 'str'
.
how can i make it work and get the string from 'take' that will be with letters, numbers and punctuation..?? (i want to insert a MAC address..).
Thannks