[comp.windows.x] xterm & rsh

harald@itk.unit.no (02/01/90)

I am trying to invoke;
	- a local xterm which does
	- a remote login and
	- sets DISPLAY and TERM

So far I do it like this (from a sh script):
  exec xterm -e rsh $host env DISPLAY=$mydisplay TERM=xterm $myshell -i &
This works "fine" for Bourne Shell, but csh gives:
  Warning: no access to tty; thus no job control in this shell...

Why? Is there a better solution?
(Not by runnig xterm remote! I do that like this:
  exec rsh $host -n exec env DISPLAY=$mydisplay TERM=xterm "$command < /dev/null >& /dev/null"
)

I would also like to run .cshrc and .login (or .profile) on the remote
machine. The (csh) man says:
     ... If the shell is invoked with a name that starts with `-', as
     when started by login(1), the shell runs as a login shell.  In
     this case, after executing com- mands from the .cshrc file, the
     shell executes commands from the .login file in your home
     directory; the same permission checks as those for .cshrc are
     applied to this file...

How do i invoke -csh (or -sh)?



System: X11R4, SunOS 4.0.3c, Sun3&4


Regards, Harald Backer

////////////////////////////////////////////////////////////////////////
/ Harald Backer                          /  harald@itk.unit.no         /
/ SINTEF Automatic Control               /  (+47 7) 594375 Switchboard /
/ The Norwegian Institute of Technology  /  (+47 7) 594399 Fax         /
/ N-7034 Trondheim                       /                             /
/ NORWAY                                 /                             /
////////////////////////////////////////////////////////////////////////

PS! Don't you ever insert a
	Return-Receipt-To: nnn
when you send to a list....