home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / next / sysadmin / 4920 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  2.7 KB

  1. Xref: sparky comp.sys.next.sysadmin:4920 comp.unix.admin:4746
  2. Newsgroups: comp.sys.next.sysadmin,comp.unix.admin
  3. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!kochmar
  4. From: kochmar@sei.cmu.edu (John Kochmar)
  5. Subject: Re: Vendors Considered Evil (Re: Perl use over NFS)
  6. Message-ID: <1992Aug28.183918.22664@sei.cmu.edu>
  7. Sender: netnews@sei.cmu.edu (Netnews)
  8. Organization: The Software Engineering Institute
  9. References: <1992Aug27.180847.15448@kakwa.ucs.ualberta.ca> <1992Aug28.145234.17625@news.eng.convex.com> <1992Aug28.155801.14501@sei.cmu.edu> <1992Aug28.180137.22861@ra.msstate.edu>
  10. Date: Fri, 28 Aug 1992 18:39:18 GMT
  11. Lines: 44
  12.  
  13.  
  14. In article <1992Aug28.180137.22861@ra.msstate.edu>, fwp@CC.MsState.Edu (Frank Peters) writes:
  15. |> In article <1992Aug28.155801.14501@sei.cmu.edu> kochmar@sei.cmu.edu (John Kochmar) says:
  16. |> : 
  17. |> : OK, I'll bite: why is it that it is much easier if perl is in an agreed
  18. |> : upon place like /usr/bin?
  19. |> 
  20. |> Because perl is a scripting language.  That means it wants to have a #!
  21. |> line at the beginning with the path name to an executable.  Distributing
  22. |> code in this situation can be an annoyance unless you can arrange to
  23. |> have the path to perl be the same on different systems.
  24.  
  25. You've gotta be kidding, right?  You're not advocating that perl be
  26. placed in /usr/bin so that scripts you pick up from who-knows-where
  27. will run without modification, right?
  28.  
  29. I got the same response from someone else in private mail.  Since I
  30. don't make a habit of picking up a script and running it without
  31. checking it over, I don't see changing the #! at the beginning to be
  32. that big a deal.
  33.  
  34. |> : We use /usr/local for all tools that aren't part of the standard
  35. |> : distribution that the vendor sends us, and I've made all sorts of
  36. |> : software work cleanly while living in /usr/local (and, in almost all
  37. |> : cases, without the use of symbolic links in /usr/bin.)  This model
  38. |> : works really well for us, and most tools will work with this model
  39. |> : if the programmers weren't of the lazy sort who like to hardwire
  40. |> : paths into the binary.
  41. |> 
  42. |> But scripts have a path hardwired into them almost by definition.
  43.  
  44. True, but the good ones are easily modifiable.  Not that I'm all that
  45. paranoid about stuff I pick up off the net being malicious, but I do
  46. look over the stuff I pick up, and I expect to have to make some site
  47. specific modifications.  #!/mumble/perl if one of those modifications.
  48.  
  49. John
  50.  
  51.  
  52.  
  53. -----------------------------------------------------------------------------
  54. John Kochmar         | Estimated amount of glucose used by an adult human
  55. kochmar@sei.cmu.edu     | brain each day, expressed in M&Ms: 250
  56. SEI Computing Facilities |            -Harper's Index, October 1989
  57.