Shellscript
ich hab in einem Script folgendes:
set -- `nslookup -sil $HOSTNAME`; FQHN="$8"
will ich dann:
printf "$FQHN"
ausgeben kommt original gar nix!
Auf der Konsole fuktionierts aber:
boo@box:~/bin> set -- `nslookup -sil $HOSTNAME`; FQHN="$8"
boo@box:~/bin> echo $FQHN
box.abc.net
boo@box:~/bin>
was is das nun?!? (die Quotes sinds jedenfalls nicht, mit echo gehts mir genauso)
____________________________________
lg, boo
~ GNU/Linux - there is no substitute! ~
|