Thread Parameter-Übergabe an Shell (13 answers)
Opened by OBSD at 2012-01-21 11:34

OBSD
 2012-01-21 14:17
#155583 #155583
User since
2012-01-21
7 Artikel
BenutzerIn
[default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Terminal:

# ifconfig bge0 | grep lladdr

Ausgabe:
# lladdr 00:15:c3:de:19:d7

#!/usr/bin/perl

my $name_netzwerkkarte = "bge0";
my $MAC_Adresse = `/sbin/ifconfig "$name_netzwerkkarte" | /usr/bin/grep lladdr`;
print $MAC_Adresse;

Ausgabe Terminal:
# bge0: no such interface

View full thread Parameter-Übergabe an Shell