Sometimes, but not always , xerrs.log returns:
... in this case for example, where the script verify if /root/Desktop directory exists or not and create it if not:myscript.sh: line xx: [: too many arguments
Code: Select all
if [ ! -d /root/Desktop ]; then
mkdir /root/Desktop
Xdialog --title "xxxx" --icon /usr/local/lib/X11/pixmaps/question.png --msgbox "xxxxx" 0 0
fi
Thank you!
Cordialement.