3 ms·
that really should be a bash script, not a python one.
by easytiger 12y ago
that really should be a bash script, not a python one.
- column 12y agowhy?
- easytiger 12y agoBecause mostly you are just shelling out. Also you can't just use any mac addr as some bits are reserved, e.g. multicast. But you can collapse that as so or suchlike: ifconfig eth34 hw ether $(openssl rand 6 | xxd -p | sed 's/\(..\)/\1:/g; s/:$//') Obviously doing this is wrong anyway but that will do what your script does.