Getting the following error in an email from the scheduled task cron system on a dedicated server:
sh: /mysqldump: No such file or directory
The cron runs a php file with code that executes a mysqldump command using exec. The code works fine when accessed via a url and also ok via an SSH terminal (Putty) but not via cron. The command we're using (with password and path removed) is below.
I've tried adding /usr/bin/ infront of mysqldump, but no difference:
Any ideas please? The control panel is Plesk.
mysqldump -hlocalhost -u db_user -p********** db_somename | gzip >