Hello wolstech,   That worked thanks you very much, took me a while because I'm not used to this panel but works perfecty when I connect remotely, but when I do it through my script does not work.      Here are part of the script. I'm doing something wrong? Shall I code this in a different way?   Please remmember that I'm learning.   Regards, Rsmartapps