🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1677

Need help with remote shell

#1677
From: Dave Corcoran
Date: Tue, 30 Oct 1990 13:23
28 lines
1111 bytes
"Hello World\n"

Is there a .login or .cshrc or .profile which is read upon startup
of a remote shell? i.e. remsh in Motorola SYSV (rsh in SunOs).

If I issue the command 

	remsh host date

I get eastern standard time. I can, however, issue

	remsh host TZ=$TZ date

and get the date adjusted to the timezone of the local machine (assuming
the host "runs" sh or ksh).

This is all well and good for simple commands. What I need is a way
to cause the remote shell to read some .profile by default to set up the
ENV without resorting to

	remsh host ". /u/me/.profile; command"

for each command. It just seems inelegant.
-- 
David Corcoran		-@@
uunet!aspect!dave	  ~
Good, fast, cheap; pick any two.
Technical Details
Message-ID: <6595@aspect.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!uunet!aspect!dave

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!uunet!aspect!dave
From: dave@aspect.UUCP (Dave Corcoran)
Newsgroups: comp.unix.shell
Subject: Need help with remote shell
Keywords: remsh,startup,ENV,.profile
Message-ID: <6595@aspect.UUCP>
Date: 30 Oct 90 13:23:09 GMT
Distribution: usa
Organization: Aspect Telecommunications, San Jose, Ca
Lines: 28