Article View: comp.sys.amiga.tech
Article #11788Re: background jobs
From: Scott Henry
Date: Mon, 13 Mar 1989 13:35
Date: Mon, 13 Mar 1989 13:35
17 lines
1247 bytes
1247 bytes
In article <1243@hudson.acc.virginia.edu> pmy@vivaldi.acc.Virginia.EDU (Pete Yadlowsky) writes:
> Can someone show me a way to make a program detach itself from the
> CLI from which it was invoked? That is, I'd like to have a particular
> program put itself in the background if it was not explicitly 'run'.
> Thanks for any help.
If you are using Aztec C V3.6, they include a function (and instructions)
on how to do this. You need to set up a couple of externals in your main,
then link with detach.(o|o32) (depending on 16/32 bit integers). It is
adequately documented in the manual (though hard to find).
> - Pete
--
---------------------
Scott Henry <scotth@sgi.com>
#include <std_disclaimer.h>
Technical Details
Message-ID:
<SCOTTH.89Mar13133531@harlie.sgi.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!sgi!shinobu!scotthReferences:
<1243@hudson.acc.virginia.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!sgi!shinobu!scotth From: scotth@harlie.sgi.com (Scott Henry) Newsgroups: comp.sys.amiga.tech Subject: Re: background jobs Message-ID: <SCOTTH.89Mar13133531@harlie.sgi.com> Date: 13 Mar 89 13:35:31 GMT References: <1243@hudson.acc.virginia.edu> Sender: news@shinobu.SGI.COM Distribution: na Organization: Silicon Graphics Inc, Mountain View, CA Lines: 17 In-reply-to: pmy@vivaldi.acc.Virginia.EDU's message of 13 Mar 89 16:12:52 GMT