Hello I'm using Mac OS X 10.6.8. How can I set some simple Terminal commands to run on start up as if I was opening up Terminal and putting those commands in myself? I basically need to start a few server daemons on start up. The commands I use in Terminal to manually start them look like sudo ruby myrubyserverscript_control.rb start
. I apologize in advance if this is super obvious or already answered on here a million times in some way I don't know enough to recognize.
相关问题
- Xcode debugger displays incorrect values for varia
- Is there a way to report errors in Apple documenta
- Advice for supporting both Mac and Windows Desktop
- Avoid cmake to add the flags -search_paths_first a
- installing packages for python 3
相关文章
- 现在使用swift开发ios应用好还是swift?
- Visual Studio Code, MAC OS X, OmniSharp server is
- xcode 4 garbage collection removed?
- IntelliJ IDEA can't open projects or add SDK o
- Automator: How do I use the Choose from List actio
- ImportError: No module named twisted.persisted.sty
- How can I vertically align my status bar item text
- Emacs/xterm color annoyance on Linux
Open System Preferences and go to the Users and Groups / Login Items tab. You can add a scipt with the
+
button or drag it to the list of items. Usually scripts end in .command that are used in this context but they are just bash scripts. I suppose you could use any script that is executable and has the correct#!
line.Here are two different things:
for run a script at boot, you should put one XML config file into /Library/LaunchDaemons (and the
launchd
process will run the script at the boot time)for run a script after you logging in - see this: https://stackoverflow.com/a/6445525/632407