New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

i need to run a couple of terminal commands at starup


Post Reply New Thread Subscribe

 
Thread Tools
tero2008

 
Member Since: Mar 18, 2008
Posts: 2
tero2008 is on a distinguished road

tero2008 is offline
Hello all,

I have a quick question. I am new to MAC OS and I would like to know how to execute a couple of terminal commands when the OS starts.

Can someone provide me the steps to create the script?

I know I need to create a .sh file and then i can run a chmod command, but I am not sure how the procedure is.

regards
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi

rman is offline
Do you want this script to run with each user account or as part of the system as it boots?

Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
QUOTE Thanks
xstep

 
xstep's Avatar
 
Member Since: Jun 25, 2005
Location: On the road
Posts: 3,231
xstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to all
Mac Specs: 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid

xstep is offline
I just use /etc/rc.local file but the new right way on OS X is use the launchd service.

A Google search can fill in the blanks.
QUOTE Thanks
tero2008

 
Member Since: Mar 18, 2008
Posts: 2
tero2008 is on a distinguished road

tero2008 is offline
Quote:
Originally Posted by rman View Post
Do you want this script to run with each user account or as part of the system as it boots?

Yeah, for every user as the computer boots... Thanks rman
QUOTE Thanks

Post Reply New Thread Subscribe


« Javascript | Terminal broken? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting 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 Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Multiple partitions in Mac - Run these commands missileh OS X - Operating System 0 02-20-2008 01:39 AM
Creating an application to run a terminal command on startup? Starky OS X - Apps and Games 7 11-26-2007 11:57 PM
n00b question - run alias in terminal Ge64 OS X - Operating System 1 10-30-2007 06:18 PM
Terminal Help rs2sensen OS X - Apps and Games 1 04-25-2005 10:52 PM
make and CDRecord plunger OS X - Development and Darwin 3 12-29-2003 05:49 PM

All times are GMT -4. The time now is 07:15 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?