Voici le code:
#####################
#!/bin/sh
if [ -f "/tmp/.X*-lock" ] ; then echo "VNC Temp files detected"
for $i in /tmp/.X*-lock
if /bin/rm $i; then echo "VNC temp files deleted"
else echo "Error: can't delete VNC temp files"
fi
else echo "VNC ready to be (…)