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

generik

macrumors 601
Original poster
Aug 5, 2005
4,116
1
Minitrue
I'm trying to figure out if I can actually start mldonkey such that it started when the system boots, instead of me having to open a special terminal window for it each time I log in.. :D

Is there such a thing as a autoexec.bat or whatever in OSX?
 
There are two ways that I know in which you could do this.

1) The easier way would be with LoginItems. To add a program to your login item list, goto 'System Preferences', click 'Accounts', the to the tab 'Login Items'. There you can add items to this list that will open up after you login. You can even click to have the app hidden after opening by checking the 'Hide' checkbox. The only downside to this is that the program doesn't load until login.

2) If you absolutely need the mldonkey daemon to run at boot time, you will have to create a Cron job for it. This following article from macosxhints shows how to set it up and modify crontab.

http://www.macosxhints.com/article.php?story=20041105070509783&query=startup+via+crontab
 
tag said:
There are two ways that I know in which you could do this.

1) The easier way would be with LoginItems. To add a program to your login item list, goto 'System Preferences', click 'Accounts', the to the tab 'Login Items'. There you can add items to this list that will open up after you login. You can even click to have the app hidden after opening by checking the 'Hide' checkbox. The only downside to this is that the program doesn't load until login.

2) If you absolutely need the mldonkey daemon to run at boot time, you will have to create a Cron job for it. This following article from macosxhints shows how to set it up and modify crontab.

http://www.macosxhints.com/article.php?story=20041105070509783&query=startup+via+crontab

Using cron to control daemonic services is depreciated in MacOS 10.4. Instead, consider using launchd.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.