I’ve been running a Linux based CAD tool package on my Mac via SSH. It’s been working fine for years, but the killer has always been that everything just died when the network connection went down. NX doesn’t have this problem, so I gave it a try and it works great. I’d now like to finish up my configuration to be the same as when I did everything via SSH.
I started my SSH connection with a double-click on a given file in the Finder. The double-click would kick off an AppleScript in which I constructed a variable called my_cmd that was set to e.g.:
ssh -Y my_machine@10.1.10.2 “module load sos; cd some_place; prog_name” > /dev/null 2>&1 &
and then in the AppleScript I’d say:
do shell script (my_cmd)
That command made the connection to the Linux box, kicked off a program on the Linux box and displayed all the windows on my Mac.
My question is: what do I need in the equivalent my_cmd command line variable so that I could launch NX and do the same thing.
Many thanks in advance for your assistance!