home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / v22 / 076 / text0000.txt < prev   
Encoding:
Text File  |  1991-03-07  |  1.8 KB  |  42 lines

  1. Submitted-by: trt@mcnc.org (Tom Truscott)
  2.  
  3. > Submitted-by: C.R.Ritson@newcastle.ac.uk ("C.R. Ritson")
  4. >
  5. > ... 
  6. > The  danger  of direct interpretation by the shell is that the file is
  7. > quite  likely  to  be  an  executable  object  file  for  some   other
  8. > architecture  seen  from the wrong side of an NFS mount.  When this is
  9. > the case the shell produces large numbers of "not found" messages  and
  10. > often  ends  up  resetting  numerous operating modes.  Our newer users
  11. > find this most confusing.
  12.  
  13. If the kernel simply returned EACCES (for example) rather than ENOEXEC
  14. when the file is non-ascii, the shells would not attempt interpretation.
  15. (Just check that the first 4 characters have value > 1 and < 128.)
  16. Dropping direct interpretation does make good sense.
  17. But there is the problem of old kernels (e.g. System V.3.2!!) lacking #!,
  18. and I think a surprising number of scripts will stop working
  19. (such as /bin/true on some systems).  Serves them right I suppose.
  20.  
  21. For Freedomnet, we took this a bit further.  We identify
  22. the binary's type and then execute it on the fastest available system.
  23. This saves a lot of wear and tear in our user environment
  24. with computers from a dozen different vendors.
  25. Wherever I log in my favorite commands still work.
  26. (Hmm, would other people have a dozen different personal "bin" directories?)
  27. Of course this isn't entirely wonderful: when we unplugged the last
  28. Gould machine some of my commands had to be recompiled.
  29. But it goes a long way and surely it is in the right direction.
  30.  
  31. It is ironic that this NFS comment comes from the home of
  32. the Newcastle Connection, which is the intellectual parent
  33. of Freedomnet.  We kept the faith, and the technical
  34. results have been most gratifying.
  35. You too can get religion: contact Thomas Warren at 1-919-541-6110
  36. or wtw@rti.rti.org.
  37.  
  38.     Tom Truscott
  39.  
  40. Volume-Number: Volume 22, Number 76
  41.  
  42.