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


Groups > comp.sys.mac.system > #15942 > unrolled thread

How to register a program with Mac OS X system?

Started byjustaguy <donli@yahoo.com>
First post2011-12-01 18:16 -0800
Last post2011-12-03 13:09 -0600
Articles 20 on this page of 28 — 12 participants

Back to article view | Back to comp.sys.mac.system


Contents

  How to register a program with Mac OS X system? justaguy <donli@yahoo.com> - 2011-12-01 18:16 -0800
    Re: How to register a program with Mac OS X system? sbt <dogbreath@chaseabone.com.invalid> - 2011-12-01 18:25 -0800
      Re: How to register a program with Mac OS X system? justaguy <donli@yahoo.com> - 2011-12-01 18:35 -0800
        Re: How to register a program with Mac OS X system? Tim Streater <timstreater@greenbee.net> - 2011-12-02 10:07 +0000
    Re: How to register a program with Mac OS X system? Only Nixon could go to China Blue <chine.bleu@yahoo.com> - 2011-12-01 18:30 -0800
      Re: How to register a program with Mac OS X system? justaguy <donli@yahoo.com> - 2011-12-01 20:21 -0800
        Re: How to register a program with Mac OS X system? Tom Harrington <tph@pcisys.no.spam.dammit.net> - 2011-12-02 10:27 -0700
          Re: How to register a program with Mac OS X system? justaguy <donli@yahoo.com> - 2011-12-02 11:39 -0800
            Re: How to register a program with Mac OS X system? Alan Baker <alangbaker@telus.net> - 2011-12-02 12:51 -0800
              Re: How to register a program with Mac OS X system? justaguy <donli@yahoo.com> - 2011-12-02 13:21 -0800
                Re: How to register a program with Mac OS X system? Tim McNamara <timmcn@bitstream.net> - 2011-12-02 17:04 -0600
                  Re: How to register a program with Mac OS X system? justaguy <donli@yahoo.com> - 2011-12-03 20:29 -0800
                    Re: How to register a program with Mac OS X system? Alan Baker <alangbaker@telus.net> - 2011-12-04 10:14 -0800
                Re: How to register a program with Mac OS X system? Tom Harrington <tph@pcisys.no.spam.dammit.net> - 2011-12-02 16:51 -0700
                Re: How to register a program with Mac OS X system? Alan Baker <alangbaker@telus.net> - 2011-12-02 16:02 -0800
                  Re: How to register a program with Mac OS X system? Barry Margolin <barmar@alum.mit.edu> - 2011-12-03 11:13 -0500
                    Re: How to register a program with Mac OS X system? justaguy <donli@yahoo.com> - 2011-12-03 20:27 -0800
            Re: How to register a program with Mac OS X system? Jolly Roger <jollyroger@pobox.com> - 2011-12-02 15:54 -0600
              Re: How to register a program with Mac OS X system? justaguy <donli@yahoo.com> - 2011-12-02 14:11 -0800
                Re: How to register a program with Mac OS X system? Tim McNamara <timmcn@bitstream.net> - 2011-12-02 17:03 -0600
                Re: How to register a program with Mac OS X system? Jolly Roger <jollyroger@pobox.com> - 2011-12-02 17:06 -0600
                Re: How to register a program with Mac OS X system? Alan Baker <alangbaker@telus.net> - 2011-12-02 16:04 -0800
                Re: How to register a program with Mac OS X system? Michael Vilain <vilain@NOspamcop.net> - 2011-12-02 23:22 -0800
                Re: How to register a program with Mac OS X system? Wes Groleau <Groleau+news@FreeShell.org> - 2011-12-03 11:59 -0500
                  Re: How to register a program with Mac OS X system? Michelle Steiner <michelle@michelle.org> - 2011-12-03 10:12 -0700
                    Re: How to register a program with Mac OS X system? Wes Groleau <Groleau+news@FreeShell.org> - 2011-12-03 12:36 -0500
                      Re: How to register a program with Mac OS X system? Michelle Steiner <michelle@michelle.org> - 2011-12-03 11:19 -0700
                        Re: How to register a program with Mac OS X system? Tim McNamara <timmcn@bitstream.net> - 2011-12-03 13:09 -0600

Page 1 of 2  [1] 2  Next page →


#15942 — How to register a program with Mac OS X system?

Fromjustaguy <donli@yahoo.com>
Date2011-12-01 18:16 -0800
SubjectHow to register a program with Mac OS X system?
Message-ID<b05c40ef-6c3e-45d5-824b-27d149d28195@u6g2000vbg.googlegroups.com>
Hi,

Say, I have a start_myApp.sh shell script that would launch my program
or other's program for that matter.  But I'd like this script to be
run automatically when Mac boots, and doing so programmatically.  I
bet it can be done with Mac but how?

Thanks.

[toc] | [next] | [standalone]


#15943

Fromsbt <dogbreath@chaseabone.com.invalid>
Date2011-12-01 18:25 -0800
Message-ID<011220111825080192%dogbreath@chaseabone.com.invalid>
In reply to#15942
In article
<b05c40ef-6c3e-45d5-824b-27d149d28195@u6g2000vbg.googlegroups.com>,
justaguy <donli@yahoo.com> wrote:

> Hi,
> 
> Say, I have a start_myApp.sh shell script that would launch my program
> or other's program for that matter.  But I'd like this script to be
> run automatically when Mac boots, and doing so programmatically.  I
> bet it can be done with Mac but how?
> 
> Thanks.

Do you really mean at boot time? Or, do you mean at login to your
account? If the latter, make sure it is set to be executable and add it
to your account's login items (System Preferences, either Accounts or
Users & Groups depending on what version of MacOS X you're running).

If you really mean "at boot time" (i.e. before any account is logged
in), that is really a bad idea from a security standpoint. However, it
can be accomplished by setting its ownership and privileges
appropriately and having it in /Library/StartupItems...you should note
that this is the method employed by example malware items (i.e. not
found "in the wild") to install keyloggers and the like.

-- 
Spenser

[toc] | [prev] | [next] | [standalone]


#15945

Fromjustaguy <donli@yahoo.com>
Date2011-12-01 18:35 -0800
Message-ID<eab67b0f-0148-4436-86aa-79afca6caa37@da3g2000vbb.googlegroups.com>
In reply to#15943
On Dec 1, 9:25 pm, sbt <dogbre...@chaseabone.com.invalid> wrote:
> In article
> <b05c40ef-6c3e-45d5-824b-27d149d28...@u6g2000vbg.googlegroups.com>,
>
> justaguy <do...@yahoo.com> wrote:
> > Hi,
>
> > Say, I have a start_myApp.sh shell script that would launch my program
> > or other's program for that matter.  But I'd like this script to be
> > run automatically when Mac boots, and doing so programmatically.  I
> > bet it can be done with Mac but how?
>
> > Thanks.
>
> Do you really mean at boot time? Or, do you mean at login to your
> account? If the latter, make sure it is set to be executable and add it
> to your account's login items (System Preferences, either Accounts or
> Users & Groups depending on what version of MacOS X you're running).
>
> If you really mean "at boot time" (i.e. before any account is logged
> in), that is really a bad idea from a security standpoint. However, it
> can be accomplished by setting its ownership and privileges
> appropriately and having it in /Library/StartupItems...you should note
> that this is the method employed by example malware items (i.e. not
> found "in the wild") to install keyloggers and the like.
>
> --
> Spenser

Thanks for the quick response.  My app, sort of hybrid web app, that
is, it runs locally, hence, it works offline as well, it leverage a
web browser, and because of this nature, it relies on an app server
(Railo from Railo Technologies in Switzerland and a web server
(Jetty), both are open source, and small footprint in file size).  So,
of course these guys need to be up and running when the Mac is booted,
then, my app can run off them, hence, the question.

So, now, say, the app and its "friends"'s folder is "KN", we have this
script named start-kn.sh.  Now, how do we add a "symbolic" or "soft"
link to the /Library/StartupItems folder and do I need to grant
permission manually as well?  Thanks again.


[toc] | [prev] | [next] | [standalone]


#15965

FromTim Streater <timstreater@greenbee.net>
Date2011-12-02 10:07 +0000
Message-ID<timstreater-B5EC60.10073402122011@news.individual.net>
In reply to#15945
In article 
<eab67b0f-0148-4436-86aa-79afca6caa37@da3g2000vbb.googlegroups.com>,
 justaguy <donli@yahoo.com> wrote:

> Thanks for the quick response.  My app, sort of hybrid web app, that
> is, it runs locally, hence, it works offline as well, it leverage a
> web browser, and because of this nature, it relies on an app server
> (Railo from Railo Technologies in Switzerland and a web server
> (Jetty), both are open source, and small footprint in file size).  So,
> of course these guys need to be up and running when the Mac is booted,
> then, my app can run off them, hence, the question.

Why can't your app launch them? That's what I do. It also avoids 
permissions problems.

-- 
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted"  --  Bill of Rights 1689

[toc] | [prev] | [next] | [standalone]


#15944

FromOnly Nixon could go to China Blue <chine.bleu@yahoo.com>
Date2011-12-01 18:30 -0800
Message-ID<chine.bleu-D5CA65.18303101122011@news.eternal-september.org>
In reply to#15942
In article <b05c40ef-6c3e-45d5-824b-27d149d28195@u6g2000vbg.googlegroups.com>,
 justaguy <donli@yahoo.com> wrote:

> Hi,
> 
> Say, I have a start_myApp.sh shell script that would launch my program
> or other's program for that matter.  But I'd like this script to be
> run automatically when Mac boots, and doing so programmatically.  I
> bet it can be done with Mac but how?

You can add a description of the process to launchd to run it as an agent or 
daemon.

A starting point might be: 
http://developer.apple.com/library/mac/#technotes/tn2083/_index.html

-- 
White folks think they're at the top,  |        Ha, ha, that is very logical.
ask any proud white male.              |       I'm whoever you want me to be.
A million years of evolution,          |  Annoying Usenet one post at a time.
and we get Danny Quayle.               |    At least I can stay in character.

[toc] | [prev] | [next] | [standalone]


#15960

Fromjustaguy <donli@yahoo.com>
Date2011-12-01 20:21 -0800
Message-ID<01125692-4513-4560-b68e-68c571945464@x7g2000yqb.googlegroups.com>
In reply to#15944
On Dec 1, 9:30 pm, Only Nixon could go to China Blue
<chine.b...@yahoo.com> wrote:
> In article <b05c40ef-6c3e-45d5-824b-27d149d28...@u6g2000vbg.googlegroups.com>,
>
>  justaguy <do...@yahoo.com> wrote:
> > Hi,
>
> > Say, I have a start_myApp.sh shell script that would launch my program
> > or other's program for that matter.  But I'd like this script to be
> > run automatically when Mac boots, and doing so programmatically.  I
> > bet it can be done with Mac but how?
>
> You can add a description of the process to launchd to run it as an agent or
> daemon.
>
> A starting point might be:http://developer.apple.com/library/mac/#technotes/tn2083/_index.html
>
> --
> White folks think they're at the top,  |        Ha, ha, that is very logical.
> ask any proud white male.              |       I'm whoever you want me to be.
> A million years of evolution,          |  Annoying Usenet one post at a time.
> and we get Danny Quayle.               |    At least I can stay in character.

Thanks for note, but it's really "heavy" stuff... my intention is to
help another programmer to figure out how to port my app to Mac.  I
won't have the luxury to become a Mac programmer type...

[toc] | [prev] | [next] | [standalone]


#15978

FromTom Harrington <tph@pcisys.no.spam.dammit.net>
Date2011-12-02 10:27 -0700
Message-ID<tph-0E8F15.10273402122011@localhost>
In reply to#15960
In article 
<01125692-4513-4560-b68e-68c571945464@x7g2000yqb.googlegroups.com>,
 justaguy <donli@yahoo.com> wrote:

> On Dec 1, 9:30 pm, Only Nixon could go to China Blue
> <chine.b...@yahoo.com> wrote:
> > In article 
> > <b05c40ef-6c3e-45d5-824b-27d149d28...@u6g2000vbg.googlegroups.com>,
> >
> >  justaguy <do...@yahoo.com> wrote:
> > > Hi,
> >
> > > Say, I have a start_myApp.sh shell script that would launch my program
> > > or other's program for that matter.  But I'd like this script to be
> > > run automatically when Mac boots, and doing so programmatically.  I
> > > bet it can be done with Mac but how?
> >
> > You can add a description of the process to launchd to run it as an agent 
> > or
> > daemon.
> >
> > A starting point might 
> > be:http://developer.apple.com/library/mac/#technotes/tn2083/_index.html
> >
> 
> Thanks for note, but it's really "heavy" stuff... my intention is to
> help another programmer to figure out how to port my app to Mac.  I
> won't have the luxury to become a Mac programmer type...

Tell the other programmer to read up on launchd then, it's the best 
solution. You can't do it all yourself, if only because you'll never be 
able to tell if you've done it right until the other person tries it. If 
they're doing any kind of Mac development then getting familiar with 
launchd will be well worth their time.

-- 
Tom "Tom" Harrington
Independent Mac OS X developer since 2002
http://www.atomicbird.com/

[toc] | [prev] | [next] | [standalone]


#15990

Fromjustaguy <donli@yahoo.com>
Date2011-12-02 11:39 -0800
Message-ID<594ad07a-2cd1-4ee3-87ce-3b57aba454c6@f35g2000yqm.googlegroups.com>
In reply to#15978
On Dec 2, 12:27 pm, Tom Harrington <t...@pcisys.no.spam.dammit.net>
wrote:
> In article
> <01125692-4513-4560-b68e-68c571945...@x7g2000yqb.googlegroups.com>,
>
>
>
>
>
>
>
>
>
>  justaguy <do...@yahoo.com> wrote:
> > On Dec 1, 9:30 pm, Only Nixon could go to China Blue
> > <chine.b...@yahoo.com> wrote:
> > > In article
> > > <b05c40ef-6c3e-45d5-824b-27d149d28...@u6g2000vbg.googlegroups.com>,
>
> > > justaguy <do...@yahoo.com> wrote:
> > > > Hi,
>
> > > > Say, I have a start_myApp.sh shell script that would launch my program
> > > > or other's program for that matter. But I'd like this script to be
> > > > run automatically when Mac boots, and doing so programmatically. I
> > > > bet it can be done with Mac but how?
>
> > > You can add a description of the process to launchd to run it as an agent
> > > or
> > > daemon.
>
> > > A starting point might
> > > be:http://developer.apple.com/library/mac/#technotes/tn2083/_index.html
>
> > Thanks for note, but it's really "heavy" stuff... my intention is to
> > help another programmer to figure out how to port my app to Mac.  I
> > won't have the luxury to become a Mac programmer type...
>
> Tell the other programmer to read up on launchd then, it's the best
> solution. You can't do it all yourself, if only because you'll never be
> able to tell if you've done it right until the other person tries it. If
> they're doing any kind of Mac development then getting familiar with
> launchd will be well worth their time.
>
> --
> Tom "Tom" Harrington
> Independent Mac OS X developer since 2002http://www.atomicbird.com/

Yes, he figured it out. By appending the startup routine to the end of
the rc.common file.
Thanks though.  Btw, I a new question coming up.

[toc] | [prev] | [next] | [standalone]


#15998

FromAlan Baker <alangbaker@telus.net>
Date2011-12-02 12:51 -0800
Message-ID<alangbaker-D754CF.12515502122011@news.shawcable.net>
In reply to#15990
In article 
<594ad07a-2cd1-4ee3-87ce-3b57aba454c6@f35g2000yqm.googlegroups.com>,
 justaguy <donli@yahoo.com> wrote:

> On Dec 2, 12:27 pm, Tom Harrington <t...@pcisys.no.spam.dammit.net>
> wrote:
> > In article
> > <01125692-4513-4560-b68e-68c571945...@x7g2000yqb.googlegroups.com>,
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >  justaguy <do...@yahoo.com> wrote:
> > > On Dec 1, 9:30 pm, Only Nixon could go to China Blue
> > > <chine.b...@yahoo.com> wrote:
> > > > In article
> > > > <b05c40ef-6c3e-45d5-824b-27d149d28...@u6g2000vbg.googlegroups.com>,
> >
> > > > justaguy <do...@yahoo.com> wrote:
> > > > > Hi,
> >
> > > > > Say, I have a start_myApp.sh shell script that would launch my 
> > > > > program
> > > > > or other's program for that matter. But I'd like this script to be
> > > > > run automatically when Mac boots, and doing so programmatically. I
> > > > > bet it can be done with Mac but how?
> >
> > > > You can add a description of the process to launchd to run it as an 
> > > > agent
> > > > or
> > > > daemon.
> >
> > > > A starting point might
> > > > be:http://developer.apple.com/library/mac/#technotes/tn2083/_index.html
> >
> > > Thanks for note, but it's really "heavy" stuff... my intention is to
> > > help another programmer to figure out how to port my app to Mac.  I
> > > won't have the luxury to become a Mac programmer type...
> >
> > Tell the other programmer to read up on launchd then, it's the best
> > solution. You can't do it all yourself, if only because you'll never be
> > able to tell if you've done it right until the other person tries it. If
> > they're doing any kind of Mac development then getting familiar with
> > launchd will be well worth their time.
> >
> > --
> > Tom "Tom" Harrington
> > Independent Mac OS X developer since 2002http://www.atomicbird.com/
> 
> Yes, he figured it out. By appending the startup routine to the end of
> the rc.common file.
> Thanks though.  Btw, I a new question coming up.

Don't mess with rc.common. Use launchd.

-- 
Alan Baker
Vancouver, British Columbia
<http://gallery.me.com/alangbaker/100008/DSCF0162/web.jpg>

[toc] | [prev] | [next] | [standalone]


#16000

Fromjustaguy <donli@yahoo.com>
Date2011-12-02 13:21 -0800
Message-ID<dc0fadf5-0f0c-468b-a1cb-bcf9d74b1218@4g2000yqu.googlegroups.com>
In reply to#15998
On Dec 2, 3:51 pm, Alan Baker <alangba...@telus.net> wrote:
> In article
> <594ad07a-2cd1-4ee3-87ce-3b57aba45...@f35g2000yqm.googlegroups.com>,
>
>
>
>
>
>
>
>
>
>  justaguy <do...@yahoo.com> wrote:
> > On Dec 2, 12:27 pm, Tom Harrington <t...@pcisys.no.spam.dammit.net>
> > wrote:
> > > In article
> > > <01125692-4513-4560-b68e-68c571945...@x7g2000yqb.googlegroups.com>,
>
> > > justaguy <do...@yahoo.com> wrote:
> > > > On Dec 1, 9:30 pm, Only Nixon could go to China Blue
> > > > <chine.b...@yahoo.com> wrote:
> > > > > In article
> > > > > <b05c40ef-6c3e-45d5-824b-27d149d28...@u6g2000vbg.googlegroups.com>,
>
> > > > > justaguy <do...@yahoo.com> wrote:
> > > > > > Hi,
>
> > > > > > Say, I have a start_myApp.sh shell script that would launch my
> > > > > > program
> > > > > > or other's program for that matter. But I'd like this script to be
> > > > > > run automatically when Mac boots, and doing so programmatically. I
> > > > > > bet it can be done with Mac but how?
>
> > > > > You can add a description of the process to launchd to run it as an
> > > > > agent
> > > > > or
> > > > > daemon.
>
> > > > > A starting point might
> > > > > be:http://developer.apple.com/library/mac/#technotes/tn2083/_index.html
>
> > > > Thanks for note, but it's really "heavy" stuff... my intention is to
> > > > help another programmer to figure out how to port my app to Mac. I
> > > > won't have the luxury to become a Mac programmer type...
>
> > > Tell the other programmer to read up on launchd then, it's the best
> > > solution. You can't do it all yourself, if only because you'll never be
> > > able to tell if you've done it right until the other person tries it. If
> > > they're doing any kind of Mac development then getting familiar with
> > > launchd will be well worth their time.
>
> > > --
> > > Tom "Tom" Harrington
> > > Independent Mac OS X developer since 2002http://www.atomicbird.com/
>
> > Yes, he figured it out. By appending the startup routine to the end of
> > the rc.common file.
> > Thanks though.  Btw, I a new question coming up.
>
> Don't mess with rc.common. Use launchd.
>
> --
> Alan Baker
> Vancouver, British Columbia
> <http://gallery.me.com/alangbaker/100008/DSCF0162/web.jpg>

So, how do we use launchd in this specific case?  thanks.

[toc] | [prev] | [next] | [standalone]


#16011

FromTim McNamara <timmcn@bitstream.net>
Date2011-12-02 17:04 -0600
Message-ID<timmcn-DB3D7F.17045002122011@news.iphouse.com>
In reply to#16000
In article 
<dc0fadf5-0f0c-468b-a1cb-bcf9d74b1218@4g2000yqu.googlegroups.com>,
 justaguy <donli@yahoo.com> wrote:

> On Dec 2, 3:51 pm, Alan Baker <alangba...@telus.net> wrote:
> > In article 
> > <594ad07a-2cd1-4ee3-87ce-3b57aba45...@f35g2000yqm.googlegroups.com>,
> >
> >
> >  justaguy <do...@yahoo.com> wrote:
> > > On Dec 2, 12:27 pm, Tom Harrington 
> > > <t...@pcisys.no.spam.dammit.net> wrote:
> > > > In article 
> > > > <01125692-4513-4560-b68e-68c571945...@x7g2000yqb.googlegroups.co
> > > > m>,
> >
> > > > justaguy <do...@yahoo.com> wrote:
> > > > > On Dec 1, 9:30 pm, Only Nixon could go to China Blue 
> > > > > <chine.b...@yahoo.com> wrote:
> > > > > > In article 
> > > > > > <b05c40ef-6c3e-45d5-824b-27d149d28...@u6g2000vbg.googlegroup
> > > > > > s.com>,
> >
> > > > > > justaguy <do...@yahoo.com> wrote:
> > > > > > > Hi,
> >
> > > > > > > Say, I have a start_myApp.sh shell script that would 
> > > > > > > launch my program or other's program for that matter. But 
> > > > > > > I'd like this script to be run automatically when Mac 
> > > > > > > boots, and doing so programmatically. I bet it can be 
> > > > > > > done with Mac but how?
> >
> > > > > > You can add a description of the process to launchd to run 
> > > > > > it as an agent or daemon.
> >
> > > > > > A starting point might 
> > > > > > be:http://developer.apple.com/library/mac/#technotes/tn2083/
> > > > > > _index.h tml
> >
> > > > > Thanks for note, but it's really "heavy" stuff... my 
> > > > > intention is to help another programmer to figure out how to 
> > > > > port my app to Mac. I won't have the luxury to become a Mac 
> > > > > programmer type...
> >
> > > > Tell the other programmer to read up on launchd then, it's the 
> > > > best solution. You can't do it all yourself, if only because 
> > > > you'll never be able to tell if you've done it right until the 
> > > > other person tries it. If they're doing any kind of Mac 
> > > > development then getting familiar with launchd will be well 
> > > > worth their time.
> >
> > > Yes, he figured it out. By appending the startup routine to the 
> > > end of the rc.common file. Thanks though.  Btw, I a new question 
> > > coming up.
> >
> > Don't mess with rc.common. Use launchd.
> 
> So, how do we use launchd in this specific case?  thanks.

Dude, are you a software programmer or not?  Do you know how to use a 
man page?

-- 
Your time is limited.  Don't waste it living someone else's life.

Steve Jobs 1955-2011

[toc] | [prev] | [next] | [standalone]


#16097

Fromjustaguy <donli@yahoo.com>
Date2011-12-03 20:29 -0800
Message-ID<11aa28a7-ceb1-494e-8879-690969cdb8ca@q9g2000yqe.googlegroups.com>
In reply to#16011
On Dec 2, 6:04 pm, Tim McNamara <tim...@bitstream.net> wrote:
> In article
> <dc0fadf5-0f0c-468b-a1cb-bcf9d74b1...@4g2000yqu.googlegroups.com>,
>
>
>
>
>
>
>
>
>
>  justaguy <do...@yahoo.com> wrote:
> > On Dec 2, 3:51 pm, Alan Baker <alangba...@telus.net> wrote:
> > > In article
> > > <594ad07a-2cd1-4ee3-87ce-3b57aba45...@f35g2000yqm.googlegroups.com>,
>
> > >  justaguy <do...@yahoo.com> wrote:
> > > > On Dec 2, 12:27 pm, Tom Harrington
> > > > <t...@pcisys.no.spam.dammit.net> wrote:
> > > > > In article
> > > > > <01125692-4513-4560-b68e-68c571945...@x7g2000yqb.googlegroups.co
> > > > > m>,
>
> > > > > justaguy <do...@yahoo.com> wrote:
> > > > > > On Dec 1, 9:30 pm, Only Nixon could go to China Blue
> > > > > > <chine.b...@yahoo.com> wrote:
> > > > > > > In article
> > > > > > > <b05c40ef-6c3e-45d5-824b-27d149d28...@u6g2000vbg.googlegroup
> > > > > > > s.com>,
>
> > > > > > > justaguy <do...@yahoo.com> wrote:
> > > > > > > > Hi,
>
> > > > > > > > Say, I have a start_myApp.sh shell script that would
> > > > > > > > launch my program or other's program for that matter. But
> > > > > > > > I'd like this script to be run automatically when Mac
> > > > > > > > boots, and doing so programmatically. I bet it can be
> > > > > > > > done with Mac but how?
>
> > > > > > > You can add a description of the process to launchd to run
> > > > > > > it as an agent or daemon.
>
> > > > > > > A starting point might
> > > > > > > be:http://developer.apple.com/library/mac/#technotes/tn2083/
> > > > > > > _index.h tml
>
> > > > > > Thanks for note, but it's really "heavy" stuff... my
> > > > > > intention is to help another programmer to figure out how to
> > > > > > port my app to Mac. I won't have the luxury to become a Mac
> > > > > > programmer type...
>
> > > > > Tell the other programmer to read up on launchd then, it's the
> > > > > best solution. You can't do it all yourself, if only because
> > > > > you'll never be able to tell if you've done it right until the
> > > > > other person tries it. If they're doing any kind of Mac
> > > > > development then getting familiar with launchd will be well
> > > > > worth their time.
>
> > > > Yes, he figured it out. By appending the startup routine to the
> > > > end of the rc.common file. Thanks though.  Btw, I a new question
> > > > coming up.
>
> > > Don't mess with rc.common. Use launchd.
>
> > So, how do we use launchd in this specific case?  thanks.
>
> Dude, are you a software programmer or not?  Do you know how to use a
> man page?
>
> --
> Your time is limited.  Don't waste it living someone else's life.
>
> Steve Jobs 1955-2011

I'm NOT working on a Mac, asking questions to be in the know because
this is my project.

[toc] | [prev] | [next] | [standalone]


#16108

FromAlan Baker <alangbaker@telus.net>
Date2011-12-04 10:14 -0800
Message-ID<alangbaker-48A462.10141604122011@news.shawcable.net>
In reply to#16097
In article 
<11aa28a7-ceb1-494e-8879-690969cdb8ca@q9g2000yqe.googlegroups.com>,
 justaguy <donli@yahoo.com> wrote:

> On Dec 2, 6:04 pm, Tim McNamara <tim...@bitstream.net> wrote:
> > In article
> > <dc0fadf5-0f0c-468b-a1cb-bcf9d74b1...@4g2000yqu.googlegroups.com>,
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >  justaguy <do...@yahoo.com> wrote:
> > > On Dec 2, 3:51 pm, Alan Baker <alangba...@telus.net> wrote:
> > > > In article
> > > > <594ad07a-2cd1-4ee3-87ce-3b57aba45...@f35g2000yqm.googlegroups.com>,
> >
> > > >  justaguy <do...@yahoo.com> wrote:
> > > > > On Dec 2, 12:27 pm, Tom Harrington
> > > > > <t...@pcisys.no.spam.dammit.net> wrote:
> > > > > > In article
> > > > > > <01125692-4513-4560-b68e-68c571945...@x7g2000yqb.googlegroups.co
> > > > > > m>,
> >
> > > > > > justaguy <do...@yahoo.com> wrote:
> > > > > > > On Dec 1, 9:30 pm, Only Nixon could go to China Blue
> > > > > > > <chine.b...@yahoo.com> wrote:
> > > > > > > > In article
> > > > > > > > <b05c40ef-6c3e-45d5-824b-27d149d28...@u6g2000vbg.googlegroup
> > > > > > > > s.com>,
> >
> > > > > > > > justaguy <do...@yahoo.com> wrote:
> > > > > > > > > Hi,
> >
> > > > > > > > > Say, I have a start_myApp.sh shell script that would
> > > > > > > > > launch my program or other's program for that matter. But
> > > > > > > > > I'd like this script to be run automatically when Mac
> > > > > > > > > boots, and doing so programmatically. I bet it can be
> > > > > > > > > done with Mac but how?
> >
> > > > > > > > You can add a description of the process to launchd to run
> > > > > > > > it as an agent or daemon.
> >
> > > > > > > > A starting point might
> > > > > > > > be:http://developer.apple.com/library/mac/#technotes/tn2083/
> > > > > > > > _index.h tml
> >
> > > > > > > Thanks for note, but it's really "heavy" stuff... my
> > > > > > > intention is to help another programmer to figure out how to
> > > > > > > port my app to Mac. I won't have the luxury to become a Mac
> > > > > > > programmer type...
> >
> > > > > > Tell the other programmer to read up on launchd then, it's the
> > > > > > best solution. You can't do it all yourself, if only because
> > > > > > you'll never be able to tell if you've done it right until the
> > > > > > other person tries it. If they're doing any kind of Mac
> > > > > > development then getting familiar with launchd will be well
> > > > > > worth their time.
> >
> > > > > Yes, he figured it out. By appending the startup routine to the
> > > > > end of the rc.common file. Thanks though.  Btw, I a new question
> > > > > coming up.
> >
> > > > Don't mess with rc.common. Use launchd.
> >
> > > So, how do we use launchd in this specific case?  thanks.
> >
> > Dude, are you a software programmer or not?  Do you know how to use a
> > man page?
> >
> > --
> > Your time is limited.  Don't waste it living someone else's life.
> >
> > Steve Jobs 1955-2011
> 
> I'm NOT working on a Mac, asking questions to be in the know because
> this is my project.

Then why when you don't know about the Mac and are asking questions of 
people who do do you then proceed to say you'll do things the wrong way?

-- 
Alan Baker
Vancouver, British Columbia
<http://gallery.me.com/alangbaker/100008/DSCF0162/web.jpg>

[toc] | [prev] | [next] | [standalone]


#16014

FromTom Harrington <tph@pcisys.no.spam.dammit.net>
Date2011-12-02 16:51 -0700
Message-ID<tph-579378.16513402122011@localhost>
In reply to#16000
In article 
<dc0fadf5-0f0c-468b-a1cb-bcf9d74b1218@4g2000yqu.googlegroups.com>,
 justaguy <donli@yahoo.com> wrote:

> On Dec 2, 3:51 pm, Alan Baker <alangba...@telus.net> wrote:
> > In article
> > <594ad07a-2cd1-4ee3-87ce-3b57aba45...@f35g2000yqm.googlegroups.com>,
> >  justaguy <do...@yahoo.com> wrote:
> > > On Dec 2, 12:27 pm, Tom Harrington <t...@pcisys.no.spam.dammit.net>
> > > wrote:
> > > > In article
> > > > <01125692-4513-4560-b68e-68c571945...@x7g2000yqb.googlegroups.com>,
> >
> > > > justaguy <do...@yahoo.com> wrote:
> > > > > Thanks for note, but it's really "heavy" stuff... my intention is to
> > > > > help another programmer to figure out how to port my app to Mac. I
> > > > > won't have the luxury to become a Mac programmer type...
> >
> > > > Tell the other programmer to read up on launchd then, it's the best
> > > > solution. You can't do it all yourself, if only because you'll never be
> > > > able to tell if you've done it right until the other person tries it. 
> > > > If
> > > > they're doing any kind of Mac development then getting familiar with
> > > > launchd will be well worth their time.
> >
> > > Yes, he figured it out. By appending the startup routine to the end of
> > > the rc.common file.
> > > Thanks though.  Btw, I a new question coming up.
> >
> > Don't mess with rc.common. Use launchd.
> 
> So, how do we use launchd in this specific case?  thanks.

man launchd
man launchd.plist

and for testing...

man launchctl

For examples, look in /Library/LaunchDaemons/ and /Library/LaunchAgents/.

-- 
Tom "Tom" Harrington
Independent Mac OS X developer since 2002
http://www.atomicbird.com/

[toc] | [prev] | [next] | [standalone]


#16018

FromAlan Baker <alangbaker@telus.net>
Date2011-12-02 16:02 -0800
Message-ID<alangbaker-AD84A8.16021302122011@news.shawcable.net>
In reply to#16000
In article 
<dc0fadf5-0f0c-468b-a1cb-bcf9d74b1218@4g2000yqu.googlegroups.com>,
 justaguy <donli@yahoo.com> wrote:

> On Dec 2, 3:51 pm, Alan Baker <alangba...@telus.net> wrote:
> > In article
> > <594ad07a-2cd1-4ee3-87ce-3b57aba45...@f35g2000yqm.googlegroups.com>,
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >  justaguy <do...@yahoo.com> wrote:
> > > On Dec 2, 12:27 pm, Tom Harrington <t...@pcisys.no.spam.dammit.net>
> > > wrote:
> > > > In article
> > > > <01125692-4513-4560-b68e-68c571945...@x7g2000yqb.googlegroups.com>,
> >
> > > > justaguy <do...@yahoo.com> wrote:
> > > > > On Dec 1, 9:30 pm, Only Nixon could go to China Blue
> > > > > <chine.b...@yahoo.com> wrote:
> > > > > > In article
> > > > > > <b05c40ef-6c3e-45d5-824b-27d149d28...@u6g2000vbg.googlegroups.com>,
> >
> > > > > > justaguy <do...@yahoo.com> wrote:
> > > > > > > Hi,
> >
> > > > > > > Say, I have a start_myApp.sh shell script that would launch my
> > > > > > > program
> > > > > > > or other's program for that matter. But I'd like this script to 
> > > > > > > be
> > > > > > > run automatically when Mac boots, and doing so programmatically. 
> > > > > > > I
> > > > > > > bet it can be done with Mac but how?
> >
> > > > > > You can add a description of the process to launchd to run it as an
> > > > > > agent
> > > > > > or
> > > > > > daemon.
> >
> > > > > > A starting point might
> > > > > > be:http://developer.apple.com/library/mac/#technotes/tn2083/_index.h
> > > > > > tml
> >
> > > > > Thanks for note, but it's really "heavy" stuff... my intention is to
> > > > > help another programmer to figure out how to port my app to Mac. I
> > > > > won't have the luxury to become a Mac programmer type...
> >
> > > > Tell the other programmer to read up on launchd then, it's the best
> > > > solution. You can't do it all yourself, if only because you'll never be
> > > > able to tell if you've done it right until the other person tries it. 
> > > > If
> > > > they're doing any kind of Mac development then getting familiar with
> > > > launchd will be well worth their time.
> >
> > > > --
> > > > Tom "Tom" Harrington
> > > > Independent Mac OS X developer since 2002http://www.atomicbird.com/
> >
> > > Yes, he figured it out. By appending the startup routine to the end of
> > > the rc.common file.
> > > Thanks though.  Btw, I a new question coming up.
> >
> > Don't mess with rc.common. Use launchd.
> >
> > --
> > Alan Baker
> > Vancouver, British Columbia
> > <http://gallery.me.com/alangbaker/100008/DSCF0162/web.jpg>
> 
> So, how do we use launchd in this specific case?  thanks.

You create an xml file with a name like 
"com.yourcompany.yoursoftware.plist that contains the correct 
information and launchd handles fire up your program at system startup.

-- 
Alan Baker
Vancouver, British Columbia
<http://gallery.me.com/alangbaker/100008/DSCF0162/web.jpg>

[toc] | [prev] | [next] | [standalone]


#16039

FromBarry Margolin <barmar@alum.mit.edu>
Date2011-12-03 11:13 -0500
Message-ID<barmar-0E5D73.11132803122011@news.eternal-september.org>
In reply to#16018
In article <alangbaker-AD84A8.16021302122011@news.shawcable.net>,
 Alan Baker <alangbaker@telus.net> wrote:

> In article 
> <dc0fadf5-0f0c-468b-a1cb-bcf9d74b1218@4g2000yqu.googlegroups.com>,
>  justaguy <donli@yahoo.com> wrote:
> > So, how do we use launchd in this specific case?  thanks.
> 
> You create an xml file with a name like 
> "com.yourcompany.yoursoftware.plist that contains the correct 
> information and launchd handles fire up your program at system startup.

And for more details, see:

http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/B
PSystemStartup/Chapters/CreatingLaunchdJobs.html#//apple_ref/doc/uid/1000
0172i-SW7-BCIEDDBJ

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***

[toc] | [prev] | [next] | [standalone]


#16096

Fromjustaguy <donli@yahoo.com>
Date2011-12-03 20:27 -0800
Message-ID<686a52ac-9e0e-485f-925d-52fc776482aa@l19g2000yqc.googlegroups.com>
In reply to#16039
On Dec 3, 11:13 am, Barry Margolin <bar...@alum.mit.edu> wrote:
> In article <alangbaker-AD84A8.16021302122...@news.shawcable.net>,
>  Alan Baker <alangba...@telus.net> wrote:
>
> > In article
> > <dc0fadf5-0f0c-468b-a1cb-bcf9d74b1...@4g2000yqu.googlegroups.com>,
> >  justaguy <do...@yahoo.com> wrote:
> > > So, how do we use launchd in this specific case?  thanks.
>
> > You create an xml file with a name like
> > "com.yourcompany.yoursoftware.plist that contains the correct
> > information and launchd handles fire up your program at system startup.
>
> And for more details, see:
>
> http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptu...
> PSystemStartup/Chapters/CreatingLaunchdJobs.html#//apple_ref/doc/uid/1000
> 0172i-SW7-BCIEDDBJ
>
> --
> Barry Margolin, bar...@alum.mit.edu
> Arlington, MA
> *** PLEASE post questions in newsgroups, not directly to me ***

All right, thanks.

[toc] | [prev] | [next] | [standalone]


#16005

FromJolly Roger <jollyroger@pobox.com>
Date2011-12-02 15:54 -0600
Message-ID<jollyroger-40FB64.15541302122011@news.individual.net>
In reply to#15990
In article 
<594ad07a-2cd1-4ee3-87ce-3b57aba454c6@f35g2000yqm.googlegroups.com>,
 justaguy <donli@yahoo.com> wrote:

> On Dec 2, 12:27 pm, Tom Harrington <t...@pcisys.no.spam.dammit.net>
> wrote:
. 
> > Tell the other programmer to read up on launchd then, it's the best
> > solution. You can't do it all yourself, if only because you'll never be
> > able to tell if you've done it right until the other person tries it. If
> > they're doing any kind of Mac development then getting familiar with
> > launchd will be well worth their time.
> 
> Yes, he figured it out. By appending the startup routine to the end of
> the rc.common file.
> Thanks though.  Btw, I a new question coming up.

You've been advised of the right way to do various things, but seems to 
be choosing the easy route instead. Like I said, your software won't be 
well-received by Mac users if it's crappy. Windows users are much more 
forgiving.

-- 
Send responses to the relevant news group rather than email to me.
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR

[toc] | [prev] | [next] | [standalone]


#16007

Fromjustaguy <donli@yahoo.com>
Date2011-12-02 14:11 -0800
Message-ID<aca11a14-af38-412e-8160-d5f7c4ef0837@q9g2000yqe.googlegroups.com>
In reply to#16005
On Dec 2, 4:54 pm, Jolly Roger <jollyro...@pobox.com> wrote:
> In article
> <594ad07a-2cd1-4ee3-87ce-3b57aba45...@f35g2000yqm.googlegroups.com>,
>
>
>
>  justaguy <do...@yahoo.com> wrote:
> > On Dec 2, 12:27 pm, Tom Harrington <t...@pcisys.no.spam.dammit.net>
> > wrote:
> .
> > > Tell the other programmer to read up on launchd then, it's the best
> > > solution. You can't do it all yourself, if only because you'll never be
> > > able to tell if you've done it right until the other person tries it. If
> > > they're doing any kind of Mac development then getting familiar with
> > > launchd will be well worth their time.
>
> > Yes, he figured it out. By appending the startup routine to the end of
> > the rc.common file.
> > Thanks though.  Btw, I a new question coming up.
>
> You've been advised of the right way to do various things, but seems to
> be choosing the easy route instead. Like I said, your software won't be
> well-received by Mac users if it's crappy. Windows users are much more
> forgiving.
>
> --
> Send responses to the relevant news group rather than email to me.
> E-mail sent to this address may be devoured by my very hungry SPAM
> filter. Due to Google's refusal to prevent spammers from posting
> messages through their servers, I often ignore posts from Google
> Groups. Use a real news client if you want me to see your posts.
>
> JR

It's totally inappropriate for you to make an accusation.  This is not
the real "beta", just more like an internal release to see if core
functionality is working for the Mac environment.  You sounds more
like a dictator than anything else.  One way (your way only) to do
things...

[toc] | [prev] | [next] | [standalone]


#16010

FromTim McNamara <timmcn@bitstream.net>
Date2011-12-02 17:03 -0600
Message-ID<timmcn-AC5DFE.17030602122011@news.iphouse.com>
In reply to#16007
In article 
<aca11a14-af38-412e-8160-d5f7c4ef0837@q9g2000yqe.googlegroups.com>,
 justaguy <donli@yahoo.com> wrote:

> On Dec 2, 4:54 pm, Jolly Roger <jollyro...@pobox.com> wrote:
> > In article 
> > <594ad07a-2cd1-4ee3-87ce-3b57aba45...@f35g2000yqm.googlegroups.com>,
> >
> >
> >
> >  justaguy <do...@yahoo.com> wrote:
> > > On Dec 2, 12:27 pm, Tom Harrington 
> > > <t...@pcisys.no.spam.dammit.net> wrote:
> > .
> > > > Tell the other programmer to read up on launchd then, it's the 
> > > > best solution. You can't do it all yourself, if only because 
> > > > you'll never be able to tell if you've done it right until the 
> > > > other person tries it. If they're doing any kind of Mac 
> > > > development then getting familiar with launchd will be well 
> > > > worth their time.
> >
> > > Yes, he figured it out. By appending the startup routine to the 
> > > end of the rc.common file. Thanks though.  Btw, I a new question 
> > > coming up.
> >
> > You've been advised of the right way to do various things, but 
> > seems to be choosing the easy route instead. Like I said, your 
> > software won't be well-received by Mac users if it's crappy. 
> > Windows users are much more forgiving.
> 
> It's totally inappropriate for you to make an accusation.  This is 
> not the real "beta", just more like an internal release to see if 
> core functionality is working for the Mac environment.  You sounds 
> more like a dictator than anything else.  One way (your way only) to 
> do things...

It may seem harsh but it's good advice in the long run.

You can do whatever you want with software on your own computer, but 
you'd better do it right when trying to extend into the Mac market.  As 
JR says, we *are* particular about how software on Macs works.  You need 
to follow the Apple human interface guidelines for your users to be 
satisfied.  You need to follow all the Apple programming guidelines for 
your software to be unlikely to be broken in the next OS update.

Windows and Linux users are used to inconsistency between applications 
and crappy, ugly, inefficient interfaces.  Hand that stuff to a Mac user 
and we'll toss your app in the Trash after about a minute.  If you don't 
want to deal with customers with high expectations, stay out of the Mac 
market.

Get that sort of thinking in your head from the get go and you'll have a 
much better chance do well in this market.

-- 
Your time is limited.  Don't waste it living someone else's life.

Steve Jobs 1955-2011

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.sys.mac.system


csiph-web