Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!cs.dal.ca!silvert From: silvert@cs.dal.ca (Bill Silvert) Newsgroups: comp.lang.fortran Subject: Re: Command line arguements? Message-ID: <1991May30.174626.12965@cs.dal.ca> Date: 30 May 91 17:46:26 GMT References: <24632@lanl.gov> Sender: silvert@cs.dal.ca.UUCP (Bill Silvert) Reply-To: silvert%biome@cs.dal.ca Organization: Habitat Ecology Div., Bedford Inst. of Oceanography Lines: 22 In article <24632@lanl.gov> jlg@cochiti.lanl.gov (Jim Giles) writes: >In article , eesnyder@boulder.Colorado.EDU (Eric E. Snyder) writes: >|> I need to write a program that takes arguements from the >|> command line and passes them to variables with in the program. >|> >|> a.out arg1 arg2 .... > >Yeah. I've always wanted to be able to do this on UNIX (with _any_ >language). Unfortunately, the shell trashes the command line before >I can have a look at it. I can turn that unsavory behaviour off - >which is fine for me, but I can't be sure all the users of my software >will turn it off. So, I have to do without a command line and deal >with the junk the shell gives me instead. Can you clarify this? I've been using getarg() and iargc() for years on all kinds of systems, and I distribute software that uses these calls. Could you explain under what circumstances they don't work? -- William Silvert, Habitat Ecology Division, Bedford Inst. of Oceanography P. O. Box 1006, Dartmouth, Nova Scotia, CANADA B2Y 4A2. Tel. (902)426-1577 UUCP=..!{uunet|watmath}!dalcs!biome!silvert BITNET=silvert%biome%dalcs@dalac InterNet=silvert%biome@cs.dal.ca