• 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: NSTask and piped commands
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask and piped commands


  • Subject: Re: NSTask and piped commands
  • From: "Stephen J. Butler" <email@hidden>
  • Date: Tue, 18 May 2010 14:48:54 -0500

On Tue, May 18, 2010 at 2:33 PM, appledev <email@hidden> wrote:
> I dont want to use a call to a bash script, because of sneaking in bad commands.
> But how should I handle this?

That's only a real concern when you put user supplied data into the
command you're running. But I don't see you doing that here... you're
just using bash to parse the otput of some unix command.

> Does someone has any advice?

Depending on what information you need, I'd use [NSWorkspace
mountedLocalVolumePaths] and then [NSFileManager
attributesOfFileSystemForPath:error:].
_______________________________________________

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: NSTask and piped commands
      • From: RenĂ© v Amerongen <email@hidden>
    • Re: NSTask and piped commands
      • From: Alastair Houghton <email@hidden>
References: 
 >NSTask and piped commands (From: appledev <email@hidden>)

  • Prev by Date: Re: Programmatic Binding
  • Next by Date: Re: NSTask and piped commands
  • Previous by thread: Re: NSTask and piped commands
  • Next by thread: Re: NSTask and piped commands
  • Index(es):
    • Date
    • Thread