From owner-freebsd-questions@FreeBSD.ORG Sun May 23 21:44:34 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 576FB16A4CE for ; Sun, 23 May 2004 21:44:34 -0700 (PDT) Received: from wolf.bytecraft.au.com (wolf.bytecraft.au.com [203.39.118.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A86643D1D for ; Sun, 23 May 2004 21:44:32 -0700 (PDT) (envelope-from murraytaylor@bytecraftsystems.com) Received: from svmarshal.bytecraft.au.com ([10.0.0.4]) by wolf.bytecraft.au.com (8.12.9/8.12.9) with ESMTP id i4O4hlTG021164; Mon, 24 May 2004 14:43:48 +1000 (EST) (envelope-from murraytaylor@bytecraftsystems.com) Received: from wombat.bytecraft.au.com (Not Verified[10.0.0.3]) by svmarshal.bytecraft.au.com with MailMarshal (v5,0,3,78) id ; Mon, 24 May 2004 14:43:46 +1000 Received: from [10.0.17.42] (wstaylorm.dand06.au.bytecraft.au.com [10.0.17.42]) by wombat.bytecraft.au.com (Postfix) with ESMTP id 3A8933F0F; Mon, 24 May 2004 14:43:39 +1000 (EST) From: Murray Taylor To: Gerard Seibert In-Reply-To: References: Content-Type: text/plain Organization: Bytecraft Systems Message-Id: <1085373818.33247.11.camel@wstaylorm.dand06.au.bytecraft.au.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Mon, 24 May 2004 14:43:38 +1000 Content-Transfer-Encoding: 7bit cc: freebsd-questions Subject: Re: Proper way to start a program at log-on X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 May 2004 04:44:34 -0000 Make a shell script like the ones in /usr/local/etc/rc.d to start and stop the process. The script MUST be named whatever.sh and must be executable. It must accept start and stop as parameters. This is the general solution. There is probably a doc reference for it but I havent looked. mjt On Mon, 2004-05-24 at 07:58, Gerard Seibert wrote: > Since I am still new to this OS, I thought that I would check to make sure > that I am doing this correctly. > > On my WinXP machine, I run the Distributed Net 'dnetc' program. Further > information regarding this program is available here: > http://www.distributed.net//docs/tutor_clients.php. > > To start the program in the background I need to issue the following > command: 'dnetc -quiet'. Since I want to start this program automatically > each time I log on, I placed that command at the end of my '.bash_profile' > file. I then placed the shutdown command 'dnetc -shutdown' in the > '/etc/rc.shutdown' file. > > Since everything seems to be workings correctly, I assume that I have done > this correctly. If there is a better way to do this, I would appreciate > receiving the information. > > Thanks! > > Gerard E. Seibert > gerard-seibert@rcn.com > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > ************************************************************************ > This Email has been scanned for Viruses by MailMarshal. > ************************************************************************ -- Murray Taylor Special Projects Engineer --------------------------------- Bytecraft Systems & Entertainment P: +61 3 8710 2555 F: +61 3 8710 2599 D: +61 3 9238 4275 M: +61 417 319 256 E: murraytaylor@bytecraftsystems.com or visit us on the web http://www.bytecraftsystems.com http://www.bytecraftentertainment.com ************************************************************************ This Email has been scanned for Viruses by MailMarshal. ************************************************************************