Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Say I have a python program called that prints a line of text. How can I auto run that program when I boot up the terminal? I know you can, but I can't find the documentation. Also no third party programs please, I'm not looking to make the program executable, just to have it run on the terminal start up.

share|improve this question
up vote 2 down vote accepted

You can put command to run the script in .bashrc file inside your home directory, this file is read every time you open non-login shell (Terminal, Iterm and their tabs).

python /path/to/

Don't forget to set the permissions for all to execute:

chmod a+x
share|improve this answer
Didn't need chmod a+x is that a problem? All I did was designate the directory in my .bashrc_profile? – Monte Carlo Jun 28 '13 at 18:07
It's not a problem - it depends how you call If you use python you do not need to set the execute permissions. If you instead use simply, you do. – Scot Jun 28 '13 at 18:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.