• 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: Wrapping unix commands
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wrapping unix commands


  • Subject: Re: Wrapping unix commands
  • From: John Hörnkvist <email@hidden>
  • Date: Thu, 1 Nov 2001 21:09:12 +0100

On Thursday, November 1, 2001, at 08:47 PM, David Remahl wrote:

Cocoa Developers,

How do you wrap a 'simple' unix command like 'whoami' or 'cd
/dev/cu.modem' for example?
I've seen a few examples of complicated wrappers but I want something
simple and small, when I worked in realbasic it was as simple as:

Dim myShell as shell
myshell.execute-"whoami"

Surely there's a really simple way to do it in cocoa?

Luke.

Search the archives for NSPort. In fact, the question was asked yesterday
and answered as well...There is plenty of documentation on it as well.

NSTask and NSPipe would give more relevant hits, I think.


Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com


References: 
 >Re: Wrapping unix commands (From: David Remahl <email@hidden>)

  • Prev by Date: Re: Wrapping unix commands
  • Next by Date: Re: Book
  • Previous by thread: Re: Wrapping unix commands
  • Next by thread: Hazards during applicationWillFinishLaunching?
  • Index(es):
    • Date
    • Thread