Sorry for the long message, that gives me:

+ MYSQL_BIN_DIR=/usr/bin
+ PGSQL_BIN_DIR=/usr/bin
+ SQLITE_BIN_DIR=/usr/bin
+ SQLITE3_BIN_DIR=/usr/bin
+ DSPAM_CONFIGDIR=/etc
+ DSPAM_HOMEDIR=/var/dspam
+ DSPAM_BIN_DIR=/usr/bin
+ '[' -z '' ']'
+ LOGROTATE_AGE=15
+ '[' -z '' ']'
+ SIGNATURE_AGE=15
+ '[' -z '' ']'
+ USE_SQL_PURGE=true
++ basename /myFolder/cron.daily/dspam_maintenance.sh .sh
+ DSPAM_CRON_LOCKFILE=/var/run/dspam_maintenance.pid
+ '[' -f /var/run/dspam_maintenance.pid ']'
+ trap 'rm -f "${DSPAM_CRON_LOCKFILE}"; exit ${?}' INT TERM EXIT
+ check_for_tools
+ local myrc=0
+ for foo in awk cut sed
+ which awk
+ for foo in awk cut sed
+ which cut
+ for foo in awk cut sed
+ which sed
+ return 0
++ dspam --version
++ sed -n 's:^Configuration parameters\:[\t ]*\(.*\)$:\1:gI;s:'\''
'\''\-\-:\n--:g;s:^'\''::g;s:'\'' '\''[a-zA-Z].*::gp'
+ DSPAM_CONFIG_PARAMETERS=
+ '[' -z /usr/bin ']'
+ '[' '!' -e /usr/bin/dspam -o '!' -e /usr/bin/dspam_clean ']'
+ '[' -z /etc ']'
+ '[' '!' -f /etc/dspam.conf ']'
+ read_dspam_params Home
+ local PARAMETER VALUE
+ for PARAMETER in '$@'
++ awk 'BEGIN { IGNORECASE=1; } $1=="Home" { print $2; exit; }'
/etc/dspam.conf
+ VALUE=/var/dspam
+ '[' 0 == 0 ']'
+ eval 'Home="/var/dspam"'
++ Home=/var/dspam
+ return 0
+ '[' -d /var/dspam ']'
+ DSPAM_HOMEDIR=/var/dspam
+ '[' '!' -d /var/dspam -o -z /var/dspam ']'
+ '[' '!' -e /usr/bin/dspam_logrotate ']'
+ /usr/bin/dspam_logrotate -a 15 -d /var/dspam
+ RUN_FULL_DSPAM_CLEAN=NO
++ /usr/bin/dspam --version
++ sed -n 's:,: :g;s:^.*\-\-with\-storage\-driver=\([^\'\'']*\).*:\1:gIp'
+ for foo in '$(${DSPAM_BIN_DIR}/dspam --version 2>&1 | sed -n "s:,:
:g;s:^.*\-\-with\-storage\-driver=\([^\'\'']*\).*:\1:gIp")'
+ case "${foo}" in
+ clean_mysql_drv
+ true
+ read_dspam_params MySQLServer MySQLPort MySQLUser MySQLPass MySQLDb
MySQLCompress
+ local PARAMETER VALUE
+ for PARAMETER in '$@'
++ awk 'BEGIN { IGNORECASE=1; } $1=="MySQLServer" { print $2; exit; }'
/etc/dspam.conf
+ VALUE=/var/lib/mysql/mysql.sock
+ '[' 0 == 0 ']'
+ eval 'MySQLServer="/var/lib/mysql/mysql.sock"'
++ MySQLServer=/var/lib/mysql/mysql.sock
+ for PARAMETER in '$@'
++ awk 'BEGIN { IGNORECASE=1; } $1=="MySQLPort" { print $2; exit; }'
/etc/dspam.conf
+ VALUE=3044
+ '[' 0 == 0 ']'
+ eval 'MySQLPort="3044"'
++ MySQLPort=3044
+ for PARAMETER in '$@'
++ awk 'BEGIN { IGNORECASE=1; } $1=="MySQLUser" { print $2; exit; }'
/etc/dspam.conf
+ VALUE=dspam
+ '[' 0 == 0 ']'
+ eval 'MySQLUser="myUser"'
++ MySQLuser=myUser
+ for PARAMETER in '$@'
++ awk 'BEGIN { IGNORECASE=1; } $1=="MySQLPass" { print $2; exit; }'
/etc/dspam.conf
+ VALUE=XXX
+ '[' 0 == 0 ']'
+ eval 'MySQLPass="XXX"'
++ MySQLPass=XXX
+ for PARAMETER in '$@'
++ awk 'BEGIN { IGNORECASE=1; } $1=="MySQLDb" { print $2; exit; }'
/etc/dspam.conf
+ VALUE=dspam
+ '[' 0 == 0 ']'
+ eval 'MySQLDb="myDB"'
++ MySQLDb=dspam
+ for PARAMETER in '$@'
++ awk 'BEGIN { IGNORECASE=1; } $1=="MySQLCompress" { print $2; exit; }'
/etc/dspam.conf
+ VALUE=true
+ '[' 0 == 0 ']'
+ eval 'MySQLCompress="true"'
++ MySQLCompress=true
+ return 0
+ '[' -n /var/lib/mysql/mysql.sock -a -n dspam -a -n dspam ']'
+ '[' '!' -e /usr/bin/mysql_config ']'
+ DSPAM_MySQL_PURGE_SQL=
++ /usr/bin/mysql_config --version
++ sed 's:[^0-9.]*::g'
+ DSPAM_MySQL_VER=5.0.45
++ echo 5.0.45
++ cut -d. -f1
+ DSPAM_MySQL_MAJOR=5
++ echo 5.0.45
++ cut -d. -f2
+ DSPAM_MySQL_MINOR=0
++ echo 5.0.45
++ cut -d. -f3
+ DSPAM_MySQL_MICRO=45
+ DSPAM_MySQL_INT=327725
+ '[' 327725 -ge 262400 ']'
+ '[' -f /etc/config/mysql_purge-4.1-optimized.sql -o -f
/etc/mysql_purge-4.1-optimized.sql ']'
+ '[' -f /etc/config/mysql_purge-4.1.sql ']'
+ DSPAM_MySQL_PURGE_SQL=/etc/config/mysql_purge-4.1.sql
+ '[' -f /etc/mysql_purge-4.1.sql ']'
+ '[' -z /etc/config/mysql_purge-4.1.sql ']'
+ '[' '!' -e /usr/bin/mysql ']'
+ DSPAM_MySQL_CMD='/usr/bin/mysql --silent --user=myUser'
+ '[' -S /var/lib/mysql/mysql.sock ']'
+ DSPAM_MySQL_CMD='/usr/bin/mysql --silent --user=myUser
--socket=/var/lib/mysql/mysql.sock'
+ '[' -n 3044 ']'
+ DSPAM_MySQL_CMD='/usr/bin/mysql --silent --user=myUser
--socket=/var/lib/mysql/mysql.sock --port=3044'
+ '[' true == true ']'
+ DSPAM_MySQL_CMD='/usr/bin/mysql --silent --user=myUser
--socket=/var/lib/mysql/mysql.sock --port=3044 --compress'
+ MYSQL_PWD=XXX
+ /usr/bin/mysql --silent --user=myUser
--socket=/var/lib/mysql/mysql.sock --port=3044 --compress dspam
ERROR 1045 (28000): Access denied for user 'myUser'@'localhost' (using
password: YES)
+ _RC=1
+ '[' 1 '!=' 0 ']'
+ echo 'MySQL purge script returned error code 1'
MySQL purge script returned error code 1
+ return 0
+ run_dspam_clean NO
+ local PURGE_SIG=NO
+ '[' NO == YES ']'
+ /usr/bin/dspam_clean -p15 -u15,15,15,15


On 8/6/2010 12:34 AM, Stevan Bajić wrote:
> don't echo anything back. just run it with something like:
> sh -x /path/to/the/maintenance/script

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to