home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / amiga / 2361 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  2.1 KB

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