Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

phuong

macrumors 6502a
Original poster
Aug 16, 2006
523
0
hello. I want to run the following sequence of command in the terminal at startup:
Code:
cd mytest
./init.bat

is it possible to do it? and if yes, please tell me how.

thnk you very much
 

HiRez

macrumors 603
Jan 6, 2004
6,265
2,630
Western US
hello. I want to run the following sequence of command in the terminal at startup:
Code:
cd mytest
./init.bat

is it possible to do it? and if yes, please tell me how.
Yes, it is possible:

http://www.osxfaq.com/Tutorials/LearningCenter/HowTo/Startup/index.ws

It's a little complicated to set it up, but it's not that bad really if you carefully follow the example. I think things might easier if you can run it at login time instead of startup time (it wouldn't need to have root privileges). But you'd have to set it up separately for each user who needs it in that case.
 

satyam90

macrumors regular
Jul 30, 2007
242
0
Bangalore, India
If u want something to run everytime u start terminal (and not at system startup) do the following:

Create a ".profile" file in ur HOME directory. ".profile" must consist of the commands that u want to run at terminal start up.


###################################################
That's it. Everytime, u start a terminal, the commands in ".profile" will run
Try it out.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.