• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OK, break it down for me... (question about gzip)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: OK, break it down for me... (question about gzip)
      • From: Graham Cox <email@hidden>
References: 
 >OK, break it down for me... (question about gzip) (From: Graham Cox <email@hidden>)
 >Re: OK, break it down for me... (question about gzip) (From: "Stephen J. Butler" <email@hidden>)

  • Prev by Date: Re: OK, break it down for me... (question about gzip)
  • Next by Date: Re: OK, break it down for me... (question about gzip)
  • Previous by thread: Re: OK, break it down for me... (question about gzip)
  • Next by thread: Re: OK, break it down for me... (question about gzip)
  • Index(es):
    • Date
    • Thread