Universal Robots Forum

Indicator of MagicFile running - 2

Hi guys.

There is this one answer with a popup. I thinks that´s exactly what I want, but unfortunately the posted code is not working. (at least I can´t make it work)

#Ending Popup via Dashboard
echo “$(/usr/bin/python -c ’
import socket;
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);
s.connect((“127.0.0.1”,29999));
s.send(“popup Recuperation des fichiers terminee !”);
s.close();
')”

Can anybody help me on this??

Thanks,
Sebastian

Hi @sebastian.reindl,

Welcome to the UR community!

The following snippet seems to do the job

echo “$(/usr/bin/python -c '
import socket;
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);
s.connect(("127.0.0.1",29999));
s.send("popup Recuperation des fichiers terminee !");
s.close()')“
1 Like

Hello Ebbe.
Thanks, that´s it!!

I was afraid, that it has something to do with special characters. And exacly that was the case. So just in addition for everyone, who is interested; those were the mistakes:

#Ending Popup via Dashboard
echo “$(/usr/bin/python -c ’ <— WRONG ’ use ’ instead
import socket;
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);
s.connect((“127.0.0.1”,29999));
s.send(“popup Recuperation des fichiers terminee !”);
s.close();
')”
And be super picky unsing " and “. That makes all the difference!! :slight_smile:

Thanks a lot…
Sebastian

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.