diff --git a/run-config.sh b/run-config.sh
index 2cf0002f1ea405004ea975ee5bb99ff0e6fa732a..17819f939b790e9a1c7487178e606670a083627d 100755
--- a/run-config.sh
+++ b/run-config.sh
@@ -64,7 +64,8 @@ date +"%F %T" >> ${dirname}/run.log
 
 # Execution
 if test $# -gt 1; then
-    echo "Run.sh call: wrong number of parameters ($#)." >> run.log
+    echo "Run.sh call: wrong number of parameters ($#)." \
+         >> ${dirname}/run.log
 elif test $# -eq 0; then
     ${bindir}/client "${url}" "${inep}" "${mac}" "${phost}" "${pport}" \
                      "${puid}" "${ppasswd}" >> ${dirname}/run.log 2>&1
@@ -81,6 +82,6 @@ elif [[ $1 == "--inventory" ]]; then
     ${bindir}/client "$1" "${url}" "${inep}" "${mac}" "${phost}" "${pport}" \
                           "${puid}" "${ppasswd}" >> ${dirname}/run.log 2>&1
 else
-    echo "Run.sh call: wrong parameter (\"$1\")." >> run.log
+    echo "Run.sh call: wrong parameter (\"$1\")." >> ${dirname}/run.log
 fi
 EOF