Problem with rcp/rsh/rdump

Problem with rcp/rsh/rdump

Post by Christopher A. Wel » Tue, 02 Oct 1990 18:46:00



        We are having an odd problem with the above "remote" commands
that doesn't seem to be very well documented....  Attempting to use
them results in a "Where are you?" error message, followed by a swift
exit from the program involved.  I have been unable to locate this
error in the source (I may very well be looking in the wrong places)
except for biff (where it occurs when biff can't figure out what
terminal you're on)....  We are running BSD 4.3 on a Vax, SUNOS 3.3
and 3.4 and other 4.2 deriviatives and it will not work for any
combination .  If you have any idea, I would greatly appreciate some
light being shed on this.  Please mail to me as I don't read this
group.

Christopher Welty - Asst. Director, RPI CS Labs

 
 
 

Problem with rcp/rsh/rdump

Post by Chris Johnst » Tue, 02 Oct 1990 17:47:00



Quote:

>    We are having an odd problem with the above "remote" commands
>Attempting to use
>them results in a "Where are you?" error message, followed by a swift
>exit from the program involved.  

you have the command 'biff y' in your .cshrc file.  Move it to your
.login file.

Also you should test to see if you are in an interactive shell before
executing parts of your .cshrc file

The follwing is part of my .cshrc file...

set path=(/usr/ucb /bin /usr/bin /usr/hosts /local/bin /etc .)
#
# Check to see if this is an interactive shell...
if ($?prompt) then
 echo -n
 set history=50

 alias  rn      'rn -S'
endif

cj

 
 
 

Problem with rcp/rsh/rdump

Post by Kyle Jon » Tue, 02 Oct 1990 05:33:00



> #
> # Check to see if this is an interactive shell...
> if ($?prompt) then
>  ...
> endif

An oft missed optimization of this is

if ($?prompt == 0) exit 0

which allows csh to skip parsing the rest of the file.


 
 
 

Problem with rcp/rsh/rdump

Post by Rick Lindsl » Tue, 02 Oct 1990 20:22:00



> #
> # Check to see if this is an interactive shell...
> if ($?prompt) then
>  ...
> endif


Quote:> An oft missed optimization of this is

> if ($?prompt == 0) exit 0

> which allows csh to skip parsing the rest of the file.

This may not be such a good idea. Remember the shell is sourcing this
file; telling it to exit may not be what you want at all. Let me present
a worst case scenario. I was having trouble figuring out why a shell script
was not working correctly:

while true
do
    stuff
done

"Stuff" was never getting done. Turns out a combination of two things
were happening. The user's .cshrc had a line in that said

if ($?prompt == 0) exit 1

and /bin/true was

--
#
# id string here
#
exit 0
--

Use your wizardry to see the bug here.

Rick

 
 
 

1. Problem with rdump/rsh

Theres probably a simple answer, but I'm new to AIX so be kind...

We want to back up some other machines on our network to the 8mm tape on our
RS6000 box. I've set up the appropriate /.rhosts AND /etc/hosts.equiv files
so root on another machine can do an rdump, only... they can't. rsh etc works
fine for any other user except for root - I've checked the /etc/security/users
file, which seems to be in order, and there my current knowledge ends. Rather
than wade laboriously through info-explorer, I was hoping somebody out there
might have some ideas.

Thanks,
        Alistair

P.S. The error I get (from Suns, SunOS 4.1) is:
rshd: 0826-813 Permission is denied.

--
Alistair Veitch                 Systems Programmer/Analyst

SNAIL: Computer Services, University of Waikato, Hamilton, New Zealand

2. 1394 drive use causes crash in RH9 with 2.4.20 kernel

3. rsh/rcp problems

4. html logging

5. rsh+rcp problems

6. Gnome error message

7. rsh rcp problem

8. OnStream DI30 problem

9. problem with rsh and rcp

10. rsh'ing AIX rdump from Sun

11. r commands (rsh, rdump as root) SunOS 4.1.3_U1

12. rdump and rsh probs

13. Rdump but not rsh