tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: "rcutil" - a script to monitor status of daemons started in rc.d



On Tue, Jan 10, 2012 at 11:56:09AM -0500, Ed Ravin wrote:
> for rcscript in $($RCORDER $RCDIR/*)
> do
>       rcname=${rcscript##*/}
> 
>       case $rcname in
>       *[!_a-zA-Z0-9]*) continue;;  # filename is an illegal variable name, 
> skip
>       esac

Why don't you ask the script with rcvar for what the variable is
independent of the name?

Joerg


Home | Main Index | Thread Index | Old Index