Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use cmdline flags' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use cmdline flags
Authored by: Anonymous on Sep 15, '03 05:21:50PM

The environment variable for DISPLAY needs to be set, but otherwise you can do the rest of it with cmd line flags:

ssh -X -C server.foo.com

-X forwards X, -C turns on compression. Been doing this for years now on OS X.

ssh -X -C server.foo.com "/path/to/my/app" &

will run the remote app. Put it in a script with the .command suffix and you've got a double-click method for X remote apps. I also have my script open X11.app, and check for the window manager (quartz-wm) before executing the ssh command for the true double-click experience; others use applescript to avoid the terminal window but I always have at least one term window open so launching terminal.app is not an issue.

---
Regards,

Ed Hintz



[ Reply to This | # ]