Am 2004-12-18 13:41:06, schrieb Juergen Salk: > Falls wirklich jemand unerlaubten Zugriff auf das config > File hätte, würde Dir dein Code auch nicht viel helfen: > > $ cat config_file > IFS > `tu_was_boeses` # > $ Deswegen verwende ich eine Killerlösung wie: ____( stdin )_________________________________________________________ / | #!/bin/bash | | VERSION="0.2.5" | CONFFILE=/etc/tddyndns | | if [ -f $CONFFILE ] ; then | | DD_EMAIL_TO=`grep "^DD_EMAIL_TO=" $CONFFILE |sed -e s/^DD_EMAIL_TO=//` | DD_EMAIL_FROM=`grep "^DD_EMAIL_FROM=" $CONFFILE |sed -e s/^DD_EMAIL_FROM=//` | IP_SERVER=`grep "^IP_SERVER=" $CONFFILE |sed -e s/^IP_SERVER=//` | DD_USER=`grep "^DD_USER=" $CONFFILE |sed -e s/^DD_USER=//` | DD_PASS=`grep "^DD_PASS=" $CONFFILE |sed -e s/^DD_PASS=//` | DD_SYSTEM=`grep "^DD_SYSTEM=" $CONFFILE |sed -e s/^DD_SYSTEM=//` | DD_WILDCARD=`grep "^DD_WILDCARD=" $CONFFILE |sed -e s/^DD_WILDCARD=//` | DD_MYIP=`grep "^DD_MYIP=" $CONFFILE |sed -e s/^DD_MYIP=//` | DD_HOST=`grep "^DD_HOST=" $CONFFILE |sed -e s/^DD_HOST=//` | DD_MX=`grep "^DD_MX=" $CONFFILE |sed -e s/^DD_MX=//` | DD_BACKMX=`grep "^DD_BACKMX=" $CONFFILE |sed -e s/^DD_BACKMX=//` \______________________________________________________________________ Zwar bischen umständlich und aufgeblasen aber funktioniert einwandfrei. > Beste Grüße - Jürgen Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM LinuxMichi 0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Attachment:
signature.pgp
Description: Digital signature