carroll@m.cs.uiuc.edu (07/04/90)
RE: Setting DISPLAY across telnet/rlogin Both telnet and rlogin preserve the TERM variable (at least in my experience - maybe it fails in some locations). You can use this fact to pass additional information along by setting TERM to be something like "real_term@display", and then having the .login / .profile pick look at TERM, and if it's of this form, extract the information, set DISPLAY, and fix TERM to be just "real_term" again. rlogin and telnet can then be aliased/functioned to set TERM appropriately just before executing the real binary. I have code here that works under ksh to do this, and it seems to function quite nicely. I can give you a copy if you'd like. Alan M. Carroll Barbara/Marilyn in '92 : carroll@cs.uiuc.edu + This time, why not choose the better halves? Epoch Development Team CS Grad / U of Ill @ Urbana ...{ucbvax,pur-ee,convex}!cs.uiuc.edu!carroll
turner@sp1.csrd.uiuc.edu (Steve Turner) (07/06/90)
Since everyone seems to have a different way to do this, I thought I'd mention the one I found in the standard X distribution: Under .../contrib/clients/xplaces there is a sh script and man page for 'rcmd' The script describes itself as: # This command runs a command remotely in the background, by pointing # stdout and stderr at /dev/null. (Should we point stdin at /dev/null too?) # By running this through the Bourne shell at the other end, and # we get rid of the rsh and rshd which otherwise hand around at either # end. Hacked from a posting by clyde@emx.utexas.edu to list.xpert To rlogin, for example, 'rcmd remotehost xterm' works. -- Steve Turner (on the Si prairie - UIUC CSRD) ARPANET: turner@csrd.uiuc.edu Phone: (217) 244-7293 or (217) 367-0882 I went walking in the wasted city / Started thinking about entropy Smelled the wind from the ruined river / Went home to watch TV -- Warren Zevon