Path: 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: 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 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 #include