On Thu, Jun 08, 2000 at 03:19:48PM -0400, cdowns wrote:
> i am trying to add a bulk list to my server and using this script i get
> the runtime error: ( ezmlm-sub: fatal: dir and dot must start with slash
> ), does anyone know what this means? my script is below. thanks
>
> christopher m downs
>
>
> #!/bin/sh
> ## this is to use ezmlm-sub function
> ## to add a list of e-mail users to
> ## a particular list.
> # <----------------------------------
> ## example :ListLoc=/var/qmail/alias/lists/listname
> $ListLoc=/var/qmail/alias/lists/test6
Remove the $ from $ListLoc
The $ is used to reference variables not to define them ...
> InputFile=list.txt
> ##
> # <----------------------------------
> ## pull names from list using @
> for name in $(cat $InputFile)
> do
> echo "Subscribing $name to $ListLoc"
> ## there is a comment here so i know the execution is out of play.
> #ezmlm-sub $listLoc $name
$listLoc is not defined, it's $ListLoc
Variable names are case sensitive ...
> done
> ## <---------------------------------
> # End of File
>
--
http://therookie.dyndns.org