Hi,
On Wed, Jun 19, 2013 at 13:46:57 +0200, tranquillo wrote:
Oh.. oh.. ich hatte schon [solved] im Betreff stehen, aber leider funktioniert das ganze nicht im script sondern nur von Hand auf der Konsole. Die Meldung bei Scriptauführung:
gpg --passphrase-fd 42 42< $BACKUPBASEDIR/secret --batch --no-tty --symmetric $BACKUPTEMP/$AKT_DATUM.backup.tgz
Antwort: "Aufruf: gpg [Optionen] [Dateiname]"
Wird das Skript von bash oder dash ausgefuehrt?
Bei Debian ist /bin/sh ein Symlink auf dash. In bash funktioniert die Input Redirection mit fd 42, in dash nicht:
chris@triangle:/tmp$ /bin/sh $ gpg --passphrase-fd 42 42<secret --batch --no-tty --symmetric fstab Reading passphrase from file descriptor 42 usage: gpg [options] [filename] $ ls fstab secret
chris@triangle:/tmp$ gpg --passphrase-fd 42 42<secret --batch --no-tty --symmetric fstab chris@triangle:/tmp$ ls fstab fstab.gpg secret
Gruss, Chris