LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 10-14-2004, 07:22 AM   #1
samsolaris
LQ Newbie
 
Registered: Aug 2003
Location: Brussels
Distribution: Solaris 9
Posts: 18

Rep: Reputation: 0
Question create a self-extracting zip file with zip on solaris?


I would like to create a self-extracting zip file for windows with the command zip on my solaris server?
I type "zip -A TEST.exe TEST.PDF"
The compressed file is created but once I want to run it on my PC(Windows 2k) it doesn't work (it write "program too big to fit in memory")

Is it possible to make that?

Thanxx

Sam
 
Old 10-14-2004, 07:42 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I'm afraid the -A option does nothing.
I just compared two zip files created with and without this option, and there was almost no difference (same size, only 2 differing bytes).
 
Old 10-14-2004, 02:31 PM   #3
Singular Matrix
LQ Newbie
 
Registered: Oct 2004
Distribution: Solaris 9 (x86)
Posts: 5

Rep: Reputation: 0
The -A option will only fix zipfile offsets, you need to add an unzip stub, such as unzipsfx.

I assume you have the file zipped by now. So try this:[list=1][*]Download the appropriate stub, say, here (for Win32, it's WIN32/unz551xN.exe)[*]Extract the Win32 stub (unzip unz551xN.zip unzipsfx.exe)[*]Prepend the stub to your zipfile (cat unzipsfx.exe test.zip > testDOS.exe)[*]Fix the zipfile offsets (zip -A testDOS.exe)[/list=1]Haven't tried this on Solaris, though, but it should work.
 
Old 10-15-2004, 01:50 AM   #4
samsolaris
LQ Newbie
 
Registered: Aug 2003
Location: Brussels
Distribution: Solaris 9
Posts: 18

Original Poster
Rep: Reputation: 0
THAT WORK VERY WELL!!!

THANXXX A LOT Master Singular Matrix!

Sam
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
extracting from password protected zip files sanjith11 Linux - Software 4 03-21-2006 09:14 AM
Extracting many zip files xconspirisist Linux - Software 2 07-18-2004 01:43 PM
zip the file ashley75 Linux - General 1 05-01-2004 12:52 PM
Zip File Help :D neozero62 Linux - Newbie 2 01-11-2004 04:59 PM
zip file athenerx Linux - Newbie 1 06-24-2001 06:15 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 01:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration