Re: Unix Commands
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/