home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ukma!wupost!spool.mu.edu!umn.edu!msus1.msus.edu!levels!etac
- Newsgroups: comp.unix.amiga
- Subject: Remote shell problems. HELP!!!!
- Message-ID: <19226.2afa70ba@levels.unisa.edu.au>
- From: etac@levels.unisa.edu.au (Andrew Chalmers)
- Date: 6 Nov 92 13:18:50 +1030
- Organization: University of South Australia
- Lines: 40
-
- I've been running 2.03 for sometime slowly solving my problems as they
- occur (if I can). I've now run accross a problem with rsh that I can't
- seem to solve. It has also highlited a problem with the shells that I
- also have been unable to solve.
-
- what I trying to do is use rsh to open a login session on another
- station and have an xterm (or anything else) open up on my Amiga.
- This works Ok. However each rsh I use generates two processes, one of
- which is always <defunct>. The other process get a very low priority and
- remains runnable, even when there is no i/o activity for the rsh.
- Conequently every rsh usesup CPU time doing apparently nothing until I
- close the login session.
-
- Interestingly enough the rsh shells I normally ativate from the standard
- shell (sh). If I use csh or tcsh to start the rsh from I still get the
- two processes as before but the rsh processes use little or no CPU time.
- (the process status is indicated by a 'T' rather than 'R'
-
- So I thought to resolve the situation I'd change some of my scripts to
- use csh or tcsh instead. This I could do. The easiest way to switch
- , I thought , was to use the convention of #!/bin/sh or #!/bin/csh
- to indicate the shell that should be used. However I can't seem
- to get this to work.
-
- I have a sh script 'test' with #!/bin/sh on the first line. It has execute
- privelege set. I type 'test' at the prompt of csh or tcsh it SHOULD start
- up a sh shell and run the script. However all I actually get is the
- prompt back. It doesn't even execute it as a csh script. It just does
- nothing. If I use 'csh test' or 'source test' it just run the script
- as if it were an csh script.
-
- Question: Does anyone know what is going on?
- Is it a problem I'm able to fix?
-
- DON"T anyone tell me to get 2.1 !!!! I would it I could !!!!
- It's still not available here !!!
-
- Thanks
-
- Andrew Chalmers.
-