Wrapping unix commands
Wrapping unix commands
- Subject: Wrapping unix commands
- From: Luke Sands <email@hidden>
- Date: Thu, 1 Nov 2001 19:19:03 +0000
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.