[plug] error msg "syntax error near unexpected token"

James Devenish devenish at guild.uwa.edu.au
Sun Nov 30 20:58:41 WST 2003


In message <sfca5460.069 at mmtnetworks.com.au>
on Sun, Nov 30, 2003 at 08:34:33PM +0800, Jon  Miller wrote:
> I'm testing a backup script, when I run it I get the following:
> # ./backup.sh
> ./backup.sh: line 25: syntax error near unexpected token `tar_verify'
> ./backup.sh: line 25: `tar_verify();'
> 
> In looking at the file (/root/backup/backup.sh) that runs first it calls on 3 functions:
> tar_backup()
> tar_verify()
> mail_report()

1/ When invoking functions, don't use () and don't use ;
2/ You didn't show us what is in the backup-function file.
3/ Using `./backup-function` will *execute* that file, not *load*
   its function definitions into backup.sh.


_______________________________________________
plug mailing list
plug at plug.linux.org.au
http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug


More information about the plug mailing list