i think there is either more to that script than you have put there or it just doesn't work. i believe shell scripts are much more complicated than two lines of code. How would the terminal know to input the commands i want it to input?

i think there is either more to that script than you have put there or it just doesn't work. i believe shell scripts are much more complicated than two lines of code. How would the terminal know to input the commands i want it to input?

Click to expand...

You can believe that if you want but it just executes what you put there. I've written hundreds of shell scripts over the years.

How does it know which commands you want to input? You enter them into the script. Obviously, you've shown us the lines, so all you have to do is enter your administrator password when it executes. Do not even think of putting your password into a script.

MacRumors attracts a broad audience
of both consumers and professionals interested in
the latest technologies and products. We also boast an active community focused on
purchasing decisions and technical aspects of the iPhone, iPod, iPad, and Mac platforms.