home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uimrl7.mrl.uiuc.edu!ercolessi
- From: ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi)
- Subject: Re: file redirection under unix
- References: <1992Dec15.192847.12970@wl.com>
- Message-ID: <BzBJo0.9It@news.cso.uiuc.edu>
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Reply-To: ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi)
- Organization: MRL - UIUC
- Distribution: usa
- Date: Tue, 15 Dec 1992 20:59:59 GMT
- Lines: 27
-
- In article <1992Dec15.192847.12970@wl.com>, agrafiot@wl.com (Dimitris Agrafiotis) writes:
- |>A trivial question: how does one redirect fortran output on a unix system?
- |>(the vms equivalent would be DEFINE FOR012 file.dat). If the answer is
- |>soft links, how do we take care of multiple versions of the program
- |>running in the same default directory?
-
- in these terms there is no solution.
- i use to create a directory for each execution, with something like
- (in a shell script)
-
- mkdir pgm$$
- cd pgm$$
- ln -s path_of_your_input_file fort.10
- pgm.x
- mv fort.11 path_of_your_output_file
- cd ..
- rm -r pgm$$
-
- the $$ is replaced by the process number so that each running
- copy has a separate directory.
- of course another solution is to put filenames in the OPENs,
- which makes the programs Unix-dependent.
- --
- Furio Ercolessi
- Materials Research Laboratory | Intl School for Advanced Studies
- Univ. of Illinois at Urbana-Champaign | Trieste, Italy
- furio@uiuc.edu | furio@sissa.it
-