Hi, I just wrote a script for the abakt backup-programm:
---------- ... :: Download :: URL|ALL|http://www.xs4all.nl/~edienske/abakt/download/abakt-0.9.5.exe|packages/abakt/abakt-0.9.5.exe ... ---------- But the prepare-Script does not download the file, because the ~ is used for substitution of Blanks: www-server:/srv/unattended/install/scripts# ../tools/prepare --07:33:46-- http://www.xs4all.nl/%20edienske/abakt/download/abakt-0.9.5.exe => `packages/abakt/abakt-0.9.5.exe.15276.tmp' Auflösen des Hostnamen »www.xs4all.nl«.... 194.109.6.92 Verbindungsaufbau zu www.xs4all.nl|194.109.6.92|:80... verbunden. HTTP Anforderung gesendet, warte auf Antwort... 404 Not Found 07:33:46 FEHLER 404: Not Found. So I changed the prepare-script to use ^ to substitute blanks: ---------- ... for needed in `egrep -hri "URL\|($WINLANG|ALL)" scripts/$2 | tr ' ' '^'`; do url=`echo "$needed" | cut -d\| -f3 | tr '^' ' ' | perl -pe 's/\r//;s/^ *//;s/ *$//'` file=`echo "$needed" | cut -d\| -f4 | tr '^' ' ' | perl -pe 's/\r//;s/^ *//;s/ *$//;s/([^\/]*\/*)$/lc($1)/eg'` path=`echo "$file" | perl -pe 's#(.*/).*#$1#'` ... ---------- Is that ok? What would be the best solution? cu, Ralf ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ unattended-info mailing list unattended-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unattended-info