From owner-freebsd-questions Mon Oct 30 8:51:30 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 703FE37B4C5 for ; Mon, 30 Oct 2000 08:51:28 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e9UGpI018453; Mon, 30 Oct 2000 08:51:18 -0800 (PST) Date: Mon, 30 Oct 2000 08:51:18 -0800 From: Alfred Perlstein To: Jeremy Vandenhouten Cc: questions@FreeBSD.ORG Subject: Re: Automated Scripts Message-ID: <20001030085117.T22110@fw.wintelcom.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from jeremy.vandenhouten@marquette.edu on Mon, Oct 30, 2000 at 10:38:56AM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Jeremy Vandenhouten [001030 08:39] wrote: > Its obvious that you can put shell scripts into rc.d but given the > similarity and the fact that you put #!/usr/bin/perl into the header of > the file, is it possible to put perl scripts into rc.d as well? It _looks_ possible: case ${local_startup} in [Nn][Oo] | '') ;; *) echo -n 'Local package initialization:' for dir in ${local_startup}; do if [ -d "${dir}" ]; then for script in ${dir}/*.sh; do if [ -x "${script}" ]; then (set -T trap 'exit 1' 2 ${script} start) fi done fi done echo . ;; why not give it a try and tell us? -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message