Date: Mon, 30 Oct 2000 08:51:18 -0800 From: Alfred Perlstein <bright@wintelcom.net> To: Jeremy Vandenhouten <jeremy.vandenhouten@marquette.edu> Cc: questions@FreeBSD.ORG Subject: Re: Automated Scripts Message-ID: <20001030085117.T22110@fw.wintelcom.net> In-Reply-To: <e1f4ae4482.e4482e1f4a@marquette.edu>; from jeremy.vandenhouten@marquette.edu on Mon, Oct 30, 2000 at 10:38:56AM -0600 References: <e1f4ae4482.e4482e1f4a@marquette.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
* Jeremy Vandenhouten <jeremy.vandenhouten@marquette.edu> [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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001030085117.T22110>