IP Adresse ermitteln
Verfasst: 13.02.2013, 21:34
Code: Alles auswählen
#!/bin/bash
IP=$(sudo /sbin/ifconfig eth0 | grep inet | cut -d ":" -f 2 | cut -d " " -f 1);
Code: Alles auswählen
#!/bin/bash
IP=$(sudo /sbin/ifconfig eth0 | grep inet | cut -d ":" -f 2 | cut -d " " -f 1);