Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Execute Bash Script Upon Start Up With Sudo Commands

Execute Bash Script Upon Start Up With Sudo Commands
Thread Tools
Fresh-Faced Recruit
Join Date: Mar 2007
Status: Offline
Reply With Quote
Apr 4, 2007, 10:59 PM
 
I have a bash script with some commands like "sudo ipfw (..)" I want to make the script run at startup without asking me for my login and password and without displaying what script is doing. I assume this is done by chown, chmod and others. But I'm not sure if I'm right and how. Can someone gives me a few pointers at making this work?
     
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
Apr 4, 2007, 11:04 PM
 
I use Lingon for stuff like this. Just go through it's wizard for setting up a script to launch at startup and have it run as root. That way you don't need to use sudo. Of course, you need Tiger for this to work, since it uses launchd.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:41 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2