string for 7zip

General discussion about netjukebox
Post Reply
wp180
User
Posts: 23
Joined: Tue Jan 16, 2007 11:50 pm
Location: Germany

string for 7zip

Post by wp180 »

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
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

I assume the Linux compile has other options for "–scs" than Windows.
Can you run "7za" from the prompt and cut and past the result?
wp180
User
Posts: 23
Joined: Tue Jan 16, 2007 11:50 pm
Location: Germany

Post by wp180 »

Hi.

7za a -mx0 -tzip %destination @%list
at the directory../netjukebox/temp/admin*

the answer is:
incorrect wildcard in listfile

wp180
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

wp180 wrote:Hi.

7za a -mx0 -tzip %destination @%list
at the directory../netjukebox/temp/admin*

the answer is:
incorrect wildcard in listfile

wp180
Run "7za" without any Command or Switches?
I want to see what Commands and Switches are possible on Linux.
wp180
User
Posts: 23
Joined: Tue Jan 16, 2007 11:50 pm
Location: Germany

Post by 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)

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
wp180
User
Posts: 23
Joined: Tue Jan 16, 2007 11:50 pm
Location: Germany

Post by wp180 »

i tried it again:

with

7za a -mx0 -tzip -ai%destination @%list

from the promt i get a correctly archiv with the name "@%list.zip"

But calling from netjukebox, no archiv was created:
"Download zip file (0.00 bytes) "

wp180
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

If you have for example have this file/directory after the error:

Code: Select all

/httpdocs/netjukebox/temp/admin_17a141d51c627e4e57739536f5fb7e4cefae8351_b73074r5st/b73074r5st.txt
Try out this from the prompt:

Code: Select all

7za a -mx0 –tzip "/httpdocs/netjukebox/temp/admin_17a141d51c627e4e57739536f5fb7e4cefae8351_b73074r5st/b73074r5st.zip"
@"/httpdocs/netjukebox/temp/admin_17a141d51c627e4e57739536f5fb7e4cefae8351_b73074r5st/b73074r5st.txt"
Please let me know if this is working.
wp180
User
Posts: 23
Joined: Tue Jan 16, 2007 11:50 pm
Location: Germany

Post by wp180 »

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
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

What I see form the first two examples,
I assume that the zip file wasn't deleted before starting 7-zip.
Have you tried it with the latest stable version of 7-zip?

Good luck,

Willem
Post Reply