Kubuntu 18.04.4, NoMachine 6.9.2
I am using NoMachine Free with SSH tunnel. I want to make a shortcut or script that automated the process. I have tried the below methods. All processes work individually. But to simplify my life I want one shortcut to dial and then connect and then open.
ssh -T -L 4102:localhost:4000 xxxxx@xxxxx && sleep 5s && /usr/bin/xdg-open /home/acer/Documents/NoMachine/Exodus_ZT.nxs
ssh -T -L 4102:localhost:4000 xxxxx@xxxxx && sleep 5s && /usr/NX/bin/nxplayer.bin /home/acer/Documents/NoMachine/Exodus_ZT.nxs
Can anyone help with this non-essential task?
Thanks in advance.
Walt