sean@noname.UUCP (Sean Mc Grath) (02/26/91)
We have a network consisting of a bunch of PCs and a Sun machine. The SUN is a SPARC 1+ running SunOS 4.1. The PCs use 3COM ethernet cards and PC/TCP from FTP. We use the rcp command provided by PC/TCP from FTP. Nine times out of ten the rcp works fine. By runing ps on the SPARC we see things like :- karl 2231 0.0 0.0 44 0 ? IW 10:23 0:00 rcp -f result.s karl 2230 0.0 0.0 64 0 ? IW 10:23 0:00 csh -c rcp -f result.s So it would seem that the rcp caused a csh shell to run the rcp. The only funny thing here is that the rcp command takes a -f option. It is not documented under SunOS and seems to cause any rcp to sit around forever. Anyway the copy works fine. however from time to time we get a hang on the PC end doing an rcp. When this happens ps on the SPARC yields things like :- root 2231 0.0 0.0 44 0 ? IW 10:23 0:00 rcp -f result.s karl 2230 0.0 0.0 64 0 ? IW 10:23 0:00 csh -c rcp -f result.s I.e. it looks as if the spawned rcp command is running as root! We end up rebooting the PC and killing off the csh and rcp processes. I've used trace(1) to watch the system calls that inetd is making to handle our rcp's but the results are the same irrespective of whether or not the PC hangs. Has anyone any idea what is going on? Thanks in advance. Sean Mc Grath (sean@fiamass.ie) 12 Clarinda Park North Dun Laoghaire Co. Dublin Ireland.