Unix Programming - I need to _zip_ files up...

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > March 2005 > I need to _zip_ files up...





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author I need to _zip_ files up...
silangdon

2005-03-22, 6:08 pm


Bit of a unix newbie so....

I've written a program to create a load of data that will get
transferred to a Windows workstation at some point. To save on
transfer times (+ the data will end up on a handheld WinCE machine)
bosses now requesting zipping of data files.

- We don't own the Unix server that the program will run on. User
will make the exe from sources that we provide
- Zip is the preferred compression format, would rather avoid human
intervention at either end
- The program creates several data files so stdout isn't expecially
practicable.


So, is there a commonly installed shell command that supports zipping?

It would probably be easiest to write a script to run my program then
a compression program..

hints and advice, as always, quite welcome
Måns Rullgård

2005-03-22, 6:08 pm

silangdon <me@you.twang> writes:

> Bit of a unix newbie so....
>
> I've written a program to create a load of data that will get
> transferred to a Windows workstation at some point. To save on
> transfer times (+ the data will end up on a handheld WinCE machine)
> bosses now requesting zipping of data files.
>
> - We don't own the Unix server that the program will run on. User
> will make the exe from sources that we provide
> - Zip is the preferred compression format, would rather avoid human
> intervention at either end
> - The program creates several data files so stdout isn't expecially
> practicable.
>
> So, is there a commonly installed shell command that supports zipping?


Yes, it's called "zip", syntax reminiscent of pkzip.

--
Måns Rullgård
mru@inprovide.com
Doug Mitton

2005-03-22, 6:08 pm

silangdon <me@you.twang> wrote:

>Bit of a unix newbie so....
>
>I've written a program to create a load of data that will get
>transferred to a Windows workstation at some point. To save on
>transfer times (+ the data will end up on a handheld WinCE machine)
>bosses now requesting zipping of data files.
>
> - We don't own the Unix server that the program will run on. User
>will make the exe from sources that we provide
> - Zip is the preferred compression format, would rather avoid human
>intervention at either end
> - The program creates several data files so stdout isn't expecially
>practicable.
>
>
>So, is there a commonly installed shell command that supports zipping?
>
>It would probably be easiest to write a script to run my program then
>a compression program..
>
>hints and advice, as always, quite welcome


I have found that even MSWin versions of zip will extract files from
standard *nix .tar.gz files. I am pretty certain that versions as old
as WinZip8 can do this. You may not have to add any zip software at
all to the Unix server.
--
------------------------------------------------
http://www3.sympatico.ca/dmitton
SPAM Reduction: Remove "x." from my domain.
------------------------------------------------
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com