lehnhard
Goto Top

unzipaufruf auf der Shell mit Passwort

Ich möchte auf einem Webserver Dateien über ein Script entpacken, welche ein passwort haben. Da es sich hierbei um sehr viele Dateien handelt, soll das passwort bereits beim Aufruf mitgegeben werden können, damit die Files hintereinander entpackt werden können. Leider finde ich für unzip keinen entsprechenden Parameter sondern erhalte immer den folgenden Screen

UnZip 5.51 of 22 May 2004, by Info-ZIP. Maintained by C. Spieler. Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.

Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
Default action is to extract files in list, except those in xlist, to exdir;
file[.zip] may be a wildcard. -Z => ZipInfo mode ("unzip -Z" for usage).

-p extract files to pipe, no messages -l list files (short format)
-f freshen existing files, create none -t test compressed archive data
-u update files, create if necessary -z display archive comment
-x exclude files that follow (in xlist) -d extract files into exdir

modifiers: -q quiet mode (-qq => quieter)
-n never overwrite existing files -a auto-convert any text files
-o overwrite files WITHOUT prompting -aa treat ALL files as text
-j junk paths (do not make directories) -v be verbose/print version info
-C match filenames case-insensitively -L make (some) names lowercase
-X restore UID/GID info -V retain VMS version numbers
-M pipe through "more" pager
Examples (see unzip.txt for more info):
unzip data1 -x joe => extract all files except joe from zipfile data1.zip
unzip -p foo | more => send contents of foo.zip via pipe into program more
unzip -fo foo ReadMe => quietly replace existing ReadMe if archive file newer

Bin für jede Hilfe (kann auch ein anderes Programm sein) sehr dankbar

Content-Key: 57835

Url: https://administrator.de/contentid/57835

Printed on: April 19, 2024 at 05:04 o'clock

Member: pixelflat
pixelflat Apr 29, 2007 at 11:44:46 (UTC)
Goto Top
Hallo,
scheint gar nicht so einfach zu sein...

Versuch mal, ob du mit unrar die zip-Dateien entpacken kannst. Hab gelesen, dass das auch geht, bin mir aber nicht sicher...

Dabei kannst du als Parameter mit "-p passwort" das PW angeben.
Member: lehnhard
lehnhard Apr 29, 2007 at 11:51:32 (UTC)
Goto Top
Grummel ein großes -P ist der Parameter, den ich aber erst in einem anderen man file eines anderen Servers fand. Vielen Dank!
Member: cykes
cykes Apr 29, 2007 at 12:12:22 (UTC)
Goto Top
Markierst Du bitte den Beitrag noch als gelöst!?