d a i s y Asked: 2017-04-25 03:31:02 +0800 CST2017-04-25 03:31:02 +0800 CST 2017-04-25 03:31:02 +0800 CST Zenity remote display text issue 772 When i run command: ssh user@host "zenity --warning --width=500 --no-wrap --text="Your $VPN is not connected. Please connect it or inform to engineer" --display=:0" If I use single quote then it works fine but there is a variable so I had to use double quote and It display like: ssh 1 Answers Voted Best Answer Sethos II 2017-04-25T21:27:22+08:002017-04-25T21:27:22+08:00 Use single quotes for the message like this: ssh user@host "zenity --warning --width=500 --no-wrap --text='Your $VPN is not connected. Please connect it or inform to engineer' --display=:0" Or escape the double quotes for the message like this: ssh user@host "zenity --warning --width=500 --no-wrap --text=\"Your $VPN is not connected. Please connect it or inform to engineer\" --display=:0"
Use single quotes for the message like this:
Or escape the double quotes for the message like this: