[plug] script error

Jon Miller jlmiller at mmtnetworks.com.au
Thu Jan 12 09:39:18 WST 2006


Did that a few minutes ago and still same error.

Jon

>>> troll at arach.net.au 9:22:57 am 12/01/2006 >>>
On Thursday 12 January 2006 08:06, Jon Miller wrote:
> I've tried looking how to construct this and I keep getting the same error
> 
> syntax error near unexpected token `else'
> 
> if [ $fileA == $fileB ]; then                         # compare files
>   echo "FileA and FileB are identical."
>   recreate()                                                 # run function
>   else
>   echo "FileA and FileB differ."
>   chngacct()                                                # run function
> fi
remove the () from the function calls - they are not needed
eg -
function some_func ()
{
  somtyhing
}
some_func arg1 arg2
or
some_func

-- 
regs MR E_T
_______________________
\                      \
  \   OOHH I hate TYPOS  \
    \                      \
      ~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
PLUG discussion list: plug at plug.org.au 
http://www.plug.org.au/mailman/listinfo/plug 
Committee e-mail: committee at plug.linux.org.au




More information about the plug mailing list