Re: OK, break it down for me... (question about gzip)
Re: OK, break it down for me... (question about gzip)
- Subject: Re: OK, break it down for me... (question about gzip)
- From: John Joyce <email@hidden>
- Date: Tue, 8 Jun 2010 01:21:32 -0500
On Jun 8, 2010, at 1:16 AM, Stephen J. Butler wrote:
> On Tue, Jun 8, 2010 at 1:04 AM, Graham Cox <email@hidden> wrote:
>> I need to be able to make a .gzip file from a FOLDER on my hard disk programatically.
>
> a) You can't gzip a folder. That's why people tar the folders, then
> gzip the tar file (or just use the 'z' option in tar).
>
> b) In a working OS X system, the unix executables will always be where
> they're supposed to be (ie: /bin, /sbin, /usr/bin, /usr/sbin, etc).
They can move from one version of the OS to another.
Not likely, but can happen. (10.5 and up there is a fairly unique Ruby installation unlike previous)
If you *really* want, you could run a prior NSTask on Unix command line tool
which
and that will let you locate the actual path of the command line tool you want to use. (pass that path to your next NSTask)
See
man which
for usage.
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden