WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   Shellscript (http://www.wcm.at/forum/showthread.php?t=45486)

boo 06.02.2002 21:07

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)

Flink 07.02.2002 13:58

versuch's mit
export $FQHN
im Script

boo 07.02.2002 20:47

schau mal ...
 
http://www.wcm.at/vb2/showthread.php?s=&threadid=45863


Alle Zeitangaben in WEZ +2. Es ist jetzt 11:12 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag