[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Daemon program

Posted on 2000-02-10
4
Medium Priority
?
235 Views
Last Modified: 2013-12-26
I want to how to write a daemon program with CodeWarrior.When MacOS system startup, this program can be load and run on backgroud.
0
Comment
Question by:Fifth
  • 2
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
boonstra earned 400 total points
ID: 2513190
You need to do two things: (1) make the app a background only application, and (2) have it start running on startup.

To do the former, select Edit-><project> Settings, and select the <PPC>Target tab.  Click on the "SIZE flags" icon, and select the "onlyBackground" option.  This makes your app a faceless background (daemon) application.

To do the latter, after building your app, place an alias in the Startup Items folder in your System Folder.  This will cause it to be started on every reboot or startup.
0
 

Author Comment

by:Fifth
ID: 2516264
I wish the daemon program loaded by System as System extension, not the Shortcut way.
0
 
LVL 3

Expert Comment

by:boonstra
ID: 2516267
Why do you want it to be an extension?

Putting an alias (or the daemon) in the Startup Items folder accomplishes everything you say you want - loading automatically on startup and running in the background.

Making it an extension might be appropriate depending on what you want to do, but you haven't told us anything that makes an extension necessary.
0
 

Author Comment

by:Fifth
ID: 2517371
thanks for your suggestion!
thanks for your help!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…
Suggested Courses

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question