Thema: Shellscript
Einzelnen Beitrag anzeigen
Alt 06.02.2002, 21:07   #1
boo
Master
 
Registriert seit: 17.08.2001
Beiträge: 578


Frage 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! ~
boo ist offline   Mit Zitat antworten