< source_code>
#!/bin/bash sendmac() { sendmail someone@example.org $1 $2 $3 $4 $5 $6 } ifconfig | grep ether | sendmac;</source_code>
Another way to get the mac address into portable format is this:
ifconfig | grep ether > ~/Desktop/MACaddress.txt; \
echo "this is my mac addresses" >> ~/Desktop/MACaddress.txt;
No comments:
Post a Comment