Hello.
Does somebody know the correctly string to call 7zip under linux?
7za a -mx0 -tzip -scswin %destination @%list don't work.
without the -scswin it don't work, too.
Any ideas?
Grettings
wp180
string for 7zip
7-Zip (A) 4.43 beta Copyright (c) 1999-2006 Igor Pavlov 2006-09-15
p7zip Version 4.43 (locale=de_DE@euro,Utf16=on,HugeFiles=on,1 CPU)
Usage: 7za <command> [<switches>...] <archive_name> [<file_names>...]
[<@listfiles...>]
<Commands>
a: Add files to archive
d: Delete files from archive
e: Extract files from archive (without using directory names)
l: List contents of archive
t: Test integrity of archive
u: Update files to archive
x: eXtract files with full paths
<Switches>
-ai[r[-|0]]{@listfile|!wildcard}: Include archives
-ax[r[-|0]]{@listfile|!wildcard}: eXclude archives
-bd: Disable percentage indicator
-i[r[-|0]]{@listfile|!wildcard}: Include filenames
-l: don't store symlinks; store the files/directories they point to
CAUTION : the scanning stage can never end because of symlinks like '..'
(ex: ln -s .. ldir)
-m{Parameters}: set compression Method (see the manual)
-o{Directory}: set Output directory
-p{Password}: set Password
-r[-|0]: Recurse subdirectories
(CAUTION: this flag does not do what you think, avoid using it)
-sfx[{name}]: Create SFX archive
-si[{name}]: read data from stdin
-slt: show technical information for l (List) command
-so: write data to stdout (eg: % 7z a dummy -tgzip Doc.txt > archive.gz)
-t{Type}: Set type of archive
-v{Size}[b|k|m|g]: Create volumes
-u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
-w[path]: assign Work directory. Empty path means a temporary directory
-x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
-y: assume Yes on all queries
p7zip Version 4.43 (locale=de_DE@euro,Utf16=on,HugeFiles=on,1 CPU)
Usage: 7za <command> [<switches>...] <archive_name> [<file_names>...]
[<@listfiles...>]
<Commands>
a: Add files to archive
d: Delete files from archive
e: Extract files from archive (without using directory names)
l: List contents of archive
t: Test integrity of archive
u: Update files to archive
x: eXtract files with full paths
<Switches>
-ai[r[-|0]]{@listfile|!wildcard}: Include archives
-ax[r[-|0]]{@listfile|!wildcard}: eXclude archives
-bd: Disable percentage indicator
-i[r[-|0]]{@listfile|!wildcard}: Include filenames
-l: don't store symlinks; store the files/directories they point to
CAUTION : the scanning stage can never end because of symlinks like '..'
(ex: ln -s .. ldir)
-m{Parameters}: set compression Method (see the manual)
-o{Directory}: set Output directory
-p{Password}: set Password
-r[-|0]: Recurse subdirectories
(CAUTION: this flag does not do what you think, avoid using it)
-sfx[{name}]: Create SFX archive
-si[{name}]: read data from stdin
-slt: show technical information for l (List) command
-so: write data to stdout (eg: % 7z a dummy -tgzip Doc.txt > archive.gz)
-t{Type}: Set type of archive
-v{Size}[b|k|m|g]: Create volumes
-u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
-w[path]: assign Work directory. Empty path means a temporary directory
-x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
-y: assume Yes on all queries
- wbartels
- netjukebox developer
- Posts: 872
- Joined: Thu Nov 04, 2004 3:12 pm
- Location: Netherlands
- Contact:
If you have for example have this file/directory after the error:
Try out this from the prompt:
Please let me know if this is working.
Code: Select all
/httpdocs/netjukebox/temp/admin_17a141d51c627e4e57739536f5fb7e4cefae8351_b73074r5st/b73074r5st.txt
Code: Select all
7za a -mx0 –tzip "/httpdocs/netjukebox/temp/admin_17a141d51c627e4e57739536f5fb7e4cefae8351_b73074r5st/b73074r5st.zip"
@"/httpdocs/netjukebox/temp/admin_17a141d51c627e4e57739536f5fb7e4cefae8351_b73074r5st/b73074r5st.txt"
Hi.
7-Zip (A) 4.43 beta Copyright (c) 1999-2006 Igor Pavlov 2006-09-15
p7zip Version 4.43 (locale=de_DE@euro,Utf16=on,HugeFiles=on,1 CPU)
Scanning
/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/All that she wants.mp3: WARNING: No more files
/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/Different.mp3: WARNING: No more files
/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/Klebstoff.mp3: WARNING: No more files
/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/Traumfrau.mp3: WARNING: No more files
Updating archive /var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/c2jzm9zv4i.zip
WARNINGS for files:
/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/All that she wants.mp3 : No more files
/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/Different.mp3 : No more files
/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/Klebstoff.mp3 : No more files
/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/Traumfrau.mp3 : No more files
----------------
WARNING: Cannot find 4 files
if i use -ai/var/www/.....
the answer is:
7-Zip (A) 4.43 beta Copyright (c) 1999-2006 Igor Pavlov 2006-09-15
p7zip Version 4.43 (locale=de_DE@euro,Utf16=on,HugeFiles=on,1 CPU)
Scanning
Creating archive @/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/c2jzm9zv4i.txt
Compressing admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i
Compressing admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/All that she wants.mp3
Compressing admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/c2jzm9zv4i.txt
Compressing admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/Different.mp3
Compressing admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/Klebstoff.mp3
Compressing admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/Traumfrau.mp3
Everything is Ok
But there is also no correctly zip-file.
i tried one more:
... -ai/var/www/.../admin.../....txt @/var/.../admin.../....zip
you see, i changed the txt with zip
I get a correctly archiv, but in an other directory. he create a new directory in admin..../
7-Zip (A) 4.43 beta Copyright (c) 1999-2006 Igor Pavlov 2006-09-15
p7zip Version 4.43 (locale=de_DE@euro,Utf16=on,HugeFiles=on,1 CPU)
Scanning
Updating archive @/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/c2jzm9zv4i.zip
Compressing @
Compressing @/var
Compressing @/var/www
Compressing @/var/www/htdocs
Compressing @/var/www/htdocs/netjukebox
Compressing @/var/www/htdocs/netjukebox/temp
Compressing @/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i
Compressing @/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/c2jzm9zv4i.txt
Compressing @/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/c2jzm9zv4i.zip
Compressing All that she wants.mp3
Compressing c2jzm9zv4i.txt
Compressing Different.mp3
Compressing Klebstoff.mp3
Compressing Traumfrau.mp3
Compressing zip3
Everything is Ok
greetings
wp180
7-Zip (A) 4.43 beta Copyright (c) 1999-2006 Igor Pavlov 2006-09-15
p7zip Version 4.43 (locale=de_DE@euro,Utf16=on,HugeFiles=on,1 CPU)
Scanning
/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/All that she wants.mp3: WARNING: No more files
/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/Different.mp3: WARNING: No more files
/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/Klebstoff.mp3: WARNING: No more files
/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/Traumfrau.mp3: WARNING: No more files
Updating archive /var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/c2jzm9zv4i.zip
WARNINGS for files:
/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/All that she wants.mp3 : No more files
/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/Different.mp3 : No more files
/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/Klebstoff.mp3 : No more files
/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/Traumfrau.mp3 : No more files
----------------
WARNING: Cannot find 4 files
if i use -ai/var/www/.....
the answer is:
7-Zip (A) 4.43 beta Copyright (c) 1999-2006 Igor Pavlov 2006-09-15
p7zip Version 4.43 (locale=de_DE@euro,Utf16=on,HugeFiles=on,1 CPU)
Scanning
Creating archive @/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/c2jzm9zv4i.txt
Compressing admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i
Compressing admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/All that she wants.mp3
Compressing admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/c2jzm9zv4i.txt
Compressing admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/Different.mp3
Compressing admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/Klebstoff.mp3
Compressing admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/Traumfrau.mp3
Everything is Ok
But there is also no correctly zip-file.
i tried one more:
... -ai/var/www/.../admin.../....txt @/var/.../admin.../....zip
you see, i changed the txt with zip
I get a correctly archiv, but in an other directory. he create a new directory in admin..../
7-Zip (A) 4.43 beta Copyright (c) 1999-2006 Igor Pavlov 2006-09-15
p7zip Version 4.43 (locale=de_DE@euro,Utf16=on,HugeFiles=on,1 CPU)
Scanning
Updating archive @/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/c2jzm9zv4i.zip
Compressing @
Compressing @/var
Compressing @/var/www
Compressing @/var/www/htdocs
Compressing @/var/www/htdocs/netjukebox
Compressing @/var/www/htdocs/netjukebox/temp
Compressing @/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i
Compressing @/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/c2jzm9zv4i.txt
Compressing @/var/www/htdocs/netjukebox/temp/admin_90d694cea17f8d988eb7d2028d65522990ca9c33_c2jzm9zv4i/c2jzm9zv4i.zip
Compressing All that she wants.mp3
Compressing c2jzm9zv4i.txt
Compressing Different.mp3
Compressing Klebstoff.mp3
Compressing Traumfrau.mp3
Compressing zip3
Everything is Ok
greetings
wp180