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

GwenDragon
 2012-01-21 13:40
#155574 #155574
User since
2005-01-17
14746 Artikel
Admin1
[Homepage]
user image
Kann ich nicht nachvollziehen, was du tust.

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
root@svr2 ~ # cat t.pl
#!/usr/bin/perl

use strict;
use warnings;

my $name_netzwerkkarte = 'eth0';
my $MAC_Adresse = `ifconfig "$name_netzwerkkarte" | grep co`;
print $MAC_Adresse;
root@svr2 ~ # perl t.pl
inet6 addr: fe80::8e89:a5ff:fe2b:a31/64 Scope:Link
collisions:0 txqueuelen:1000
root@svr2 ~ #

View full thread Parameter-Übergabe an Shell