Date: Mon, 30 Oct 2000 11:04:06 -0600 From: Jeremy Vandenhouten <jeremy.vandenhouten@marquette.edu> To: Alfred Perlstein <bright@wintelcom.net>, questions@freebsd.org Subject: Re: Automated Scripts Message-ID: <e9e34eb6f3.eb6f3e9e34@marquette.edu>
next in thread | raw e-mail | index | archive | help
> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e9e34eb6f3.eb6f3e9e34>