I do all my work in ksh. When a script invokes a remote shell using rsh
where does it get its environment from ? For e.g., if I do
$ rsh <remote host> env
why does it grab some minimal default env file (or something) instead of
sourcing my .profile or .kshrc. How do I get around this ? I want to run
a script which forks another shell but goes to that machine and uses my
own .profile or .kshrc on that machine.
I don't really want to do something like:
$ rsh <remote host> -l <user> -e . .kshrc
You see, C shell sources your .cshrc every time it forks a shell but for
some reason ksh doesn't. Do you know a work around ?
I DO NOT want to modify my script to read some environment file
somewhere.
thanks,
shivi shankaran.