opening an app in a shell script with sudo I'm trying to open an app that listens to port 25 within a shell script.  In order to listen to port 25, I need to run the app with sudo.  So I tried the following:

sudo open appThatNeedsPort25


It asks me for my password and opens the app.  Problem is the app is NOT being run as root, so it is unable to listen to port 25...

What do I do to open an app from a shell script so that it can listen to port 25?
Just try sudo appthatneedsport25, no need to use open when dealing with bash or shell scripts. If it is an interpreted script (python ruby etc) and it isnt set to executable, you can always do sudo python scriptname.