From owner-freebsd-questions Mon Oct 30 9: 4:18 2000 Delivered-To: freebsd-questions@freebsd.org Received: from postmarq.mu.edu (hermes.mu.edu [134.48.1.5]) by hub.freebsd.org (Postfix) with ESMTP id AE4AA37B479 for ; Mon, 30 Oct 2000 09:04:14 -0800 (PST) Received: from marquette.edu ([127.0.0.1]) by postmarq.mu.edu (Netscape Messaging Server 4.15) with ESMTP id G3962U00.SYX; Mon, 30 Oct 2000 11:04:06 -0600 From: Jeremy Vandenhouten To: Alfred Perlstein , questions@freebsd.org Message-ID: Date: Mon, 30 Oct 2000 11:04:06 -0600 X-Mailer: Netscape Webmail MIME-Version: 1.0 Content-Language: en Subject: Re: Automated Scripts X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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 . > ;; > Given this line right here: for script in ${dir}/*.sh; do It looks like all you would have to do is add another identical for loop and add something similar... For instance if all your perl scripts ended in .pl... for script in ${dir}/*.pl; do Yes, yes I know that is supposed to be for older perl libraries but in this case... Just one question, where did this snippet come from? Jeremy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message