Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.mac.system > #16016
| From | Tom Harrington <tph@pcisys.no.spam.dammit.net> |
|---|---|
| Newsgroups | comp.sys.mac.system |
| Subject | Re: Need scripting help with a new program start-up... |
| Organization | Atomic Bird |
| References | <d83a99df-fdba-467e-8211-62827dfc074a@l24g2000yqm.googlegroups.com> |
| Date | 2011-12-02 16:55 -0700 |
| Message-ID | <tph-505E01.16554502122011@localhost> (permalink) |
In article
<d83a99df-fdba-467e-8211-62827dfc074a@l24g2000yqm.googlegroups.com>,
justaguy <donli@yahoo.com> wrote:
> Hi,
>
> I've posted a few questions here and have received helpful responses,
> which I appreciate. To those who may not have read my questions/posts,
> let me do a quick recap, I'm porting a web app to Mac OS X, and the
> app would come bundled with its app server.
>
> Here's what needs to happen:
> for a starter, a zipped installer (Railo.zip)
> 1. download
> 2. unzip (instructions to zip to /Library folder)
> 3. click on {my_app_config_n_startup} shell script something.
>
> My question is on the above #3, how do I make this
> my_app_config_n_startup shell script something to perform the
> following:
> 3a) append {the app server to startup programs), that is,
> how to append the following line
> /Library/railo/start
> to the rc.common file
Seriously: don't. It's much better to use launchd. In that case you just
drop a tiny XML file in the right place and use launchctl to load it.
Thereafter it gets loaded automatically.
> 3b) run ./start (it would launch the app server for the current
> session)
Most likely this would be done from your launchd configuration.
> 3c) launch Safari with a URL
> How to do that with the current script in question?
"open -a Safari" works but I'd recommend dropping the app name and just
using "open http://whatever/". That will load the URL in the user's
preferred browser instead of forcing it to load in Safari.
--
Tom "Tom" Harrington
Independent Mac OS X developer since 2002
http://www.atomicbird.com/
Back to comp.sys.mac.system | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Need scripting help with a new program start-up... justaguy <donli@yahoo.com> - 2011-12-02 12:06 -0800
Re: Need scripting help with a new program start-up... Tim Streater <timstreater@greenbee.net> - 2011-12-02 20:35 +0000
Re: Need scripting help with a new program start-up... justaguy <donli@yahoo.com> - 2011-12-02 13:20 -0800
Re: Need scripting help with a new program start-up... Tom Harrington <tph@pcisys.no.spam.dammit.net> - 2011-12-02 16:55 -0700
Re: Need scripting help with a new program start-up... Tim Streater <timstreater@greenbee.net> - 2011-12-03 00:02 +0000
Re: Need scripting help with a new program start-up... Only Nixon could go to China Blue <chine.bleu@yahoo.com> - 2011-12-03 02:26 -0800
Re: Need scripting help with a new program start-up... justaguy <donli@yahoo.com> - 2011-12-07 13:03 -0800
Re: Need scripting help with a new program start-up... Only Nixon could go to China Blue <chine.bleu@yahoo.com> - 2011-12-07 14:14 -0800
csiph-web