C
ComU
Guest
Hi all,
my problem is that the cron job which runs mysqldump.sh is not running. This script is needed in plesk daily cron job (/etc/psa/plesk-cron.daily/50plesk-daily). So I don't get a mysql dump in /var/lib/psa/dumps. (all rights here are correct)
I tried to run the script "by hand", but it didn't come to an end:
I assume that there is a problem with the following lines in mysqldump.sh:
I already tried to get the content of $prod_conf_t in read_conf(), but I get no output - just a blank line:
Output
Has anybody already seen this problem? Im running Suse 10.0, Plesk 8.2, perl 5.8.7. I think these are the important issues concerning to my problem. Perhaps it has something to do with an perl update?!
Many thanks in advance!
ComU
my problem is that the cron job which runs mysqldump.sh is not running. This script is needed in plesk daily cron job (/etc/psa/plesk-cron.daily/50plesk-daily). So I don't get a mysql dump in /var/lib/psa/dumps. (all rights here are correct)
Code:
drwxr-xr-x 7 psaadm psaadm 4096 2007-08-08 12:15 dumps
I tried to run the script "by hand", but it didn't come to an end:
Code:
ps aux
root 30522 0.0 0.1 3784 1472 pts/0 S+ 12:15 0:00 /bin/sh ./mysqldump.sh
root 30523 0.0 0.1 4812 1584 pts/0 S+ 12:15 0:00 perl -e undef $/; $_=<>; s/#.*$//gm;?????s/^\s*(\S+)\s*/$1=/mg;?????print
I assume that there is a problem with the following lines in mysqldump.sh:
Code:
read_conf()
{
if [ -s $prod_conf_t ]; then
tmp_var=`perl -e 'undef $/; $_=<>; s/#.*$//gm;
s/^\s*(\S+)\s*/$1=/mg;
print' $prod_conf_t`
eval $tmp_var
else
if [ "X$do_upgrade" = "X1" ]; then
[ 0$ignore_miss_conf -ne 1 ] && p_echo "Unable to find product configuration file: $prod_conf_t"
return 1
fi
fi
return 0
}
Code:
read_conf()
{
echo test
echo $prod_conf_t
if [ -s $prod_conf_t ]; then
...
}
Code:
test
Many thanks in advance!
ComU