Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.system > #16016

Re: Need scripting help with a new program start-up...

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.42!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!nx02.iad01.newshosting.com!newshosting.com!69.16.185.21.MISMATCH!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.pcisys.net!news.pcisys.net.POSTED!not-for-mail
NNTP-Posting-Date Fri, 02 Dec 2011 17:55:45 -0600
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>
User-Agent MT-NewsWatcher/3.5.1 (Intel Mac OS X)
Date Fri, 02 Dec 2011 16:55:45 -0700
Message-ID <tph-505E01.16554502122011@localhost> (permalink)
Lines 45
X-Usenet-Provider http://www.giganews.com
X-Trace sv3-yBKBN733tlrv/nVBrbEHuyojF5QKiIhzbxOFGFciKpZg2PrnwGJU1Bid6FRe0mkumS/DYwFg3oYyJMj!+yfO4UpzzmG0mlSP/Z5OoyfY1BAjavzRd6ZkDK0+Rmgst0CEmYUr6/W4ns3vJrF/j/oSwSf5MDC5!ZCkZ3Q==
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 2590
Xref x330-a1.tempe.blueboxinc.net comp.sys.mac.system:16016

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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