Hi again
Your answers are great.
I still don't seem to be able to connect to humbug.
Here is the putty readout
Last login: Thu Mar 16 09:20:17 2006 from godricbj.plus.com
godricbj@cshell02:~$ whereis mysqldump
mysqldump: /usr/bin/mysqldump /usr/share/man/man1/mysqldump.1.gz
godricbj@cshell02:~$ cd backup01
godricbj@cshell02:~/backup01$ ls
backup.sql?.gz cronjob2.sh old-cronjob2.sh
godricbj@cshell02:~/backup01$ bash cronjob2.sh
/usr/bin/mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
.gz already exists; do you wish to overwrite (y or n)? n
not overwritten
mv: cannot stat `backup.sql.gz': No such file or directory
-backup-20060316.sql.gz: No such file or directory
-backup-20060316.sql.gz: unable to attach file.
rm: cannot remove `godricbj_pn\r-backup-20060316.sql.gz': No such file or directory
Knocking it down one at a time, I check the path to mysqldump, then run cronjob2.sh and get error:2002.
Is this a symlink to another box?
Do I need more in my line 10 to get it to let me in?
My present line 10 is...
/usr/bin/mysqldump -u$DBUSER -p$DBPASS --opt $DBNAME test01 > backup.sql
I removed "-h $DBHOST" as I assumed that it was not needed.
Before removing it I got..
error: 2005: Unknown MySQL Server Host
As ever all help is most gratefully recieved.
Many thanks
gbj