LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 10-14-2004, 08: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, 08:42 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,522

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
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, 03: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, 02: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:14 AM
Extracting many zip files xconspirisist Linux - Software 2 07-18-2004 02:43 PM
zip the file ashley75 Linux - General 1 05-01-2004 01:52 PM
Zip File Help :D neozero62 Linux - Newbie 2 01-11-2004 05:59 PM
zip file athenerx Linux - Newbie 1 06-24-2001 07:15 PM


All times are GMT -5. The time now is 06:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration