Results 1 to 4 of 4
  1. #1


    Member Since
    Mar 18, 2008
    Posts
    2
    i need to run a couple of terminal commands at starup
    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

  2. #2

    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    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
    Cool
    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!

  3. #3

    xstep's Avatar
    Member Since
    Jun 25, 2005
    Location
    On the road
    Posts
    3,231
    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.

  4. #4


    Member Since
    Mar 18, 2008
    Posts
    2
    As part of the system as it boots.
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. mac terminal run a file of commands
    By ilan in forum OS X - Operating System
    Replies: 4
    Last Post: 09-30-2012, 06:16 PM
  2. Terminal commands
    By Alex99 in forum OS X - Operating System
    Replies: 1
    Last Post: 11-22-2010, 11:03 AM
  3. Run Terminal commands outside application?
    By Corbab in forum OS X - Operating System
    Replies: 1
    Last Post: 11-24-2009, 02:11 PM
  4. Terminal commands
    By eggman in forum Switcher Hangout
    Replies: 8
    Last Post: 01-12-2009, 10:05 PM
  5. useful terminal commands
    By moz in forum Switcher Hangout
    Replies: 4
    Last Post: 06-24-2005, 11:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •