*BSD News Article 57477


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!usenet.ins.cwru.edu!gatech!newsfeed.internetmci.com!howland.reston.ans.net!nntp.crl.com!crl.crl.com!not-for-mail
From: mgphl@crl.com (Michael G. Phillips)
Newsgroups: alt.unix.wizards,comp.unix.admin,comp.unix.advocacy,comp.unix.aix,comp.unix.bsd.misc,comp.unix.solaris,comp.unix.ultrix
Subject: Re: A challenge
Followup-To: alt.unix.wizards,comp.unix.admin,comp.unix.advocacy,comp.unix.aix,comp.unix.bsd.misc,comp.unix.solaris,comp.unix.ultrix
Date: 20 Dec 1995 17:54:00 -0800
Organization: <home>
Lines: 22
Distribution: inet
Message-ID: <4baeno$sgd@crl.crl.com>
References: <4b4q0l$pc3@news.inc.net> <4b5e2r$nma@shocker.mid.net> <4b9kvv$ria@hecate.umd.edu>
NNTP-Posting-Host: crl.com
X-Newsreader: TIN [version 1.2 PL2]
Xref: euryale.cc.adfa.oz.au alt.unix.wizards:2459 comp.unix.admin:36260 comp.unix.advocacy:12440 comp.unix.aix:66959 comp.unix.bsd.misc:389 comp.unix.solaris:55072 comp.unix.ultrix:26561

Ed Schmahl (ed@astro.umd.edu) wrote:


: Here's a question (possibly useful, possibly stupid) that none of the
: Unix wizards I know have been able to answer.  Let's see if anyone on
: the Net has any suggestions.

: Say we've got a (gasp) Fortran program that outputs data to a file called
: R:foobar.  The program compiles fine on VMS and DOS operating systems, but not
: on Unix systems, which complains about the ":" as a directory tree separator.
: The obvious (non wizardly) way to solve this is to modify the source code to 
: sense the OS that it's being compiled under and change the ":" to a "/"
: when it's compiled under Unix.  But is there a (wizardly) way
: to force Unix, during run time, to accept R:foobar as if it was R/foobar?

	Forget "sensing the os"... why not just change the code to 
	write to STDOUT and *redirect* that output to where ever 
	your "os" desires?
-- 
   -----------------------------------------------------
   Michael G. Phillips    mgphl@crl.com     904.897.4611
   "Just because it worked doesn't mean it works." -- me