Aherne Peter-pahern02 wrote:
>> <spell check on>
> <grammer check on>
> <politeness check on>
<real newlines in mailer off>
> I want to be able to run a script after logging into a machine.
> .login/.cshrc etc files are not the answer. What I want to be able to do is
> something along the lines of...
Why won't .login/.cshrc files do? All that rlogin does (straight from
the manpage) is check what port you're connecting from, then whether it
can identify your host, then whether it needs to authenticate, or
whether .rhosts is in place & allowed. Then it passes off to login for a
normal login process (with the usual environment setting & script
reading). You could maybe (but I'm not sure how) detect whether you're
coming from a remote machine in .profile/.bashrc/.tcshrc, and run a
script depending on that?
> I know rsh can do this but it then returns you to the original machine, is
> there a way I can stay logged into the target machine. man rsh/rlogin,
> google etc. all done, ssh not an option unfortunately. I'm beginning to
> think this is not possible.
Maybe if we had a little bit more of an idea of why you're trying to do
this, another solution would present itself...
</real newlines in mailer off>
> </politeness check on>
> </grammer check on>
> </spell check on>
David Neary, E-Mail dave.neary at palamon.ie
Palamon Technologies Ltd. Phone +353-1-634-5059
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!