Leser: 22
1
2
3
4
5
$host=`/home/user/db_project/scripts/hostname_ikak303`;
$stringlaenge= length($host);
print $host;
print $stringlaenge;
1
2
3
4
5
6
7
8
9
10
11
12
jars@jars-desktop:~/community$ perl hostname.pl
<<ikak303
>>8jars@jars-desktop:~/community$ cat hostname.pl
$host=`./hostname_ikak303`;
$stringlaenge= length($host);
print "<<", $host, ">>";
print $stringlaenge;
jars@jars-desktop:~/community$ cat hostname_ikak303
#!/bin/sh
echo "ikak303";
ikak3037
echo "ikak404"