• 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: Unix Commands
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unix Commands


  • Subject: Re: Unix Commands
  • From: Markus Hitter <email@hidden>
  • Date: Thu, 1 Nov 2001 20:47:01 +0100

Am Donnerstag den, 1. November 2001, um 19:50, schrieb Luke Sands:

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"

In (Objective-) C, it's even simpler:

system("whoami");

See "man system". If you're interested in the generated output, look at popen(). On more complex tasks, NSTask is a good choice.


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/


References: 
 >Unix Commands (From: Luke Sands <email@hidden>)

  • Prev by Date: Re: Authentication in PreferencePanes
  • Next by Date: Re: Wrapping unix commands
  • Previous by thread: Re: Unix Commands
  • Next by thread: Re: Unix Commands
  • Index(es):
    • Date
    • Thread