trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: January 2018

Re: [trinity-users] reading notifications?

From: Thierry de Coulon <tcoulon@...>
Date: Mon, 29 Jan 2018 20:22:07 +0100
On Monday 29 January 2018 09.01:51 Dr. Nikolaus Klepp wrote:

> well, you could poll for tun0, till it appears:
>
> 	tdesu <openconnect_script> &
> 	while sleep 1; do xmessage "waiting for tun0" -timeout 1 & ip addr show
> dev tun0 1>/dev/null 2>&1 && break; done
>
>
> Nik


Thank you Nik. xmessage steals focus from tdesu and I can't input the 
password, so I removed that.

Now I run:

tdesu <openconnect_script> &
while sleep 1; do  ip addr show dev tun0 1>/dev/null 2>&1 && break; done

and I put a zenity call in <openconnect_script>

That works quite well.

Regards,

Thierry