i need to run a couple of terminal commands at starup

Joined
Mar 18, 2008
Messages
2
Reaction score
0
Points
1
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
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,637
Reaction score
168
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
Do you want this script to run with each user account or as part of the system as it boots?
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
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.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top