rsh w/o .cshrc executed ?

rsh w/o .cshrc executed ?

Post by z.. » Mon, 07 Mar 1994 06:59:28



Here's another one:

is there a way to execute sth like
        rsh remote-host "command ..."

without having the .cshrc executed (i use csh).
Of course, i could put sth like
        if ($?USER == 0 || $?prompt == 0) exit
in the .cshrc, but this does only cut short execution.

?

--

Gabriel Zachmann

/----------------------------------------------------------------------------\
|                                                           email:           |

|                             (Augustinus)                                   |
\----------------------------------------------------------------------------/

 
 
 

1. *AGAIN* CSH - Execute `target' .cshrc with `su'

Yesterday, I posted a request about the execution of .cshrc file of
the target user when executing su:

I received a bunch of responses telling me to execute:
        su - otherUser (i.e. with the `-' option)

This is, to my sense, not satisfactory (i.e. BSD like).  With the `-'
option, su behaves like login, i.e. executes also the .login file;
you are also moved to the otherUser's home directory.  I would prefer
an su which does not execute the .login file and stays where you are ...

I think that the point is that system V su does not change the $USER
environment variable (but only the userid).

Thanks,
Alain
--
Dr. Alain H. Ninane     | Tel : +32-10-47.32.32 - Fax: +32-10-45.21.83

Nuclear Physics Dept.   | Ch. du Cyclotron, 2
B-1348 Louvain-la-Neuve | BELGIUM              

2. disk / memory / cpu monitoring

3. Can you execute /stand/sysinstall from PATH added to .cshrc?

4. Q: support for Promise DC-200 hard drive controller

5. su under tcsh does not execute the new user's .cshrc

6. Problems with INETD.

7. su - c not executing .cshrc

8. rsh bug ?

9. Why .cshrc file is not executed

10. Does "su root" execute /.cshrc?

11. Q: Setting env variable before executing .profile/.cshrc

12. .cshrc and 'exec' as the first command to execute.

13. Does "su root" execute /.cshrc?