problems running script

Lazy E
2007-05-23
2013-05-29
  • Lazy E
    Lazy E
    2007-05-23

    I just uploaded the script and configured it.  I tried running it as a cronjob "sh automysqlbackup.sh" and recieved the following errors via email:
    automysqlbackup.sh: line 26:
    : command not found
    automysqlbackup.sh: line 29:
    : command not found
    automysqlbackup.sh: line 32:
    : command not found
    automysqlbackup.sh: line 35:
    : command not found
    automysqlbackup.sh: line 38:
    : command not found
    automysqlbackup.sh: line 41:
    : command not found
    automysqlbackup.sh: line 49:
    : command not found
    automysqlbackup.sh: line 52:
    : command not found
    automysqlbackup.sh: line 55:
    : command not found
    automysqlbackup.sh: line 56:
    : command not found
    automysqlbackup.sh: line 60:
    : command not found
    automysqlbackup.sh: line 63:
    : command not found
    automysqlbackup.sh: line 66:
    : command not found
    automysqlbackup.sh: line 69:
    : command not found
    automysqlbackup.sh: line 72:
    : command not found
    automysqlbackup.sh: line 75:
    : command not found
    automysqlbackup.sh: line 78:
    : command not found
    automysqlbackup.sh: line 81:
    : command not found
    automysqlbackup.sh: line 84:
    : command not found
    automysqlbackup.sh: line 87:
    : command not found
    automysqlbackup.sh: line 90:
    : command not found
    automysqlbackup.sh: line 93:
    : command not found
    automysqlbackup.sh: line 96:
    : command not found
    automysqlbackup.sh: line 338:
    : command not found
    automysqlbackup.sh: line 350:
    : command not found
    automysqlbackup.sh: line 407: syntax error near unexpected token `{ '
    automysqlbackup.sh: line 407: `dbdump () { '

    It appears that the command not founds are blank lines.  Any ideas?

    Thanks,
    Mike

     
    • Jason
      Jason
      2007-09-17

      I got exactly the same error, have you managed to fix the problem???

       
      • Chris Janton
        Chris Janton
        2007-09-17

        check your line endings.