Shell Script Questions

BriceH

Registered
Here are a few of my questions about shell scripts. I'm not sure if this is the right section, but the Scripting section seemed more like a collection.

1. How do I have my shell script check for a -[letter]? For examle, if I want to have my shell script echo either yes or no:
Input: ./return.sh -y
Output: Yes
or
Input: ./return.sh -n
Output: No

2. How do I have my shell script access an iPhone / iPod Touch plugged in with a USB cable?

3. How do I make an Objective-C application run a shell script? I've heard that NSTask does this. How does NSTask work?
 
Back
Top