home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / fortran / 5186 < prev    next >
Encoding:
Text File  |  1993-01-27  |  1.6 KB  |  37 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!nih-csl!helix.nih.gov!rvenable
  3. From: rvenable@helix.nih.gov (Richard M. Venable)
  4. Subject: Re: How to get command line arguments from unix with FORTRAN?
  5. Message-ID: <1993Jan26.200311@helix.nih.gov>
  6. Sender: postman@alw.nih.gov (AMDS Postmaster)
  7. Reply-To: rvenable@helix.nih.gov (Richard M. Venable)
  8. Organization: National Institutes of Health
  9. References: <1993Jan25.214008.10580@leland.Stanford.EDU> <1k1palINNao2@morrow.stanford.edu> <PMURPHY.93Jan26121847@orangutan.cv.nrao.edu>
  10. Date: Wed, 27 Jan 1993 01:03:11 GMT
  11. Lines: 24
  12.  
  13. In article <PMURPHY.93Jan26121847@orangutan.cv.nrao.edu>,
  14. pmurphy@nrao.edu (Pat Murphy) writes:
  15. |> A brief experiment with telnet shows that his posting machine is not
  16. a
  17. |> Sun: "ULTRIX V4.2A (Rev. 47)".  My f77 info for Ultrix (4.0),
  18. |> fortunately shows getarg identical to the above.  However I know
  19. that
  20. |> for other flavors of unix it is different.  For example, HP-UX uses
  21. a
  22. |> function IGETARG with three arguments.
  23.  
  24. Ah, but you can still use GETARG under HP-UX; it's just that IGETARG
  25. provides info on the length of the string returned, while GETARG does
  26. not.  Also, a compiler directive is required to use GETARG.  However,
  27. I think HP's biggest sin here is that  CALL GETARG(1,string)  returns
  28. the program name, where most other implementations consider that to be
  29. argument 0 (zero) and not 1 (one).
  30.  
  31. -----------------------------------------------------------------
  32.  Rick Venable                  |    "Eschew
  33.  FDA/CBER Biophysics Lab       |   Obfuscation"  
  34.  rvenable@helix.nih.gov        |         -- the Phantom Nerd   
  35. -----------------------------------------------------------------
  36.  
  37.