• 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
Pipes and Shell Commands
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pipes and Shell Commands


  • Subject: Pipes and Shell Commands
  • From: Brian Ling <email@hidden>
  • Date: Wed, 21 Aug 2002 02:45:00 -0700 (PDT)

Hi

I have a some code that starts a shell script and
receives the output from the script, however what I
need to be able to do is send the script the contents
of an NSSting, I don't want to do this using [NSTask
setArguments:] for security reasons.

I have seen some code that pipes data from one shell
command to another, however the data is generated by
the first command.

So how can I pipe the NSString to the command, as
NSFileHandle only has a writeData method that takes an
NSData type as an argument.

Any info or pointers would be most welcome.

Brian
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Pipes and Shell Commands
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: updateChangeCount in a non document based application
  • Next by Date: Re: (Newbie)Missing Header Files, Please Help
  • Previous by thread: updateChangeCount in a non document based application
  • Next by thread: Re: Pipes and Shell Commands
  • Index(es):
    • Date
    • Thread