Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Ric Werme <werme@nospam.mediaone.net>
Subject: Re: Locked file problem
Date: Thu, 26 Oct 2000 01:31:02 GMT	[thread overview]
Message-ID: <qPLJ5.90$ml4.36713@typhoon.ne.mediaone.net> (raw)
In-Reply-To: 39F59DB2.BFD6660@kmi-irm.oma.be

Alessandro Ipe <Alessandro.Ipe@kmi-irm.oma.be> writes:

>I am using Tru64 v4.0F.  My problem is the following :
>When I am executing a home-made program (in C, for example) and, during
>its execution, I am trying to recompile it, the compiler is failing to
>overwrite the old executable with the newly created one. I presume there
>is a mechanism in the OS preventing this to append, like a sort of file
>locking during execution... However, is it possible to permanently
>disable this option ?

The usual trick is the have the Makefile delete the executable first, e.g.:

foo: foo.o
	rm -f foo
	cc -o foo foo.o

It's not too hard to link to file bar and replace foo with that if the
link was successful.

>--------------AE1B004C88A70491F2B47C06
>Content-Type: text/html; charset=us-ascii
>Content-Transfer-Encoding: 7bit

><!doctype html public "-//w3c//dtd html 4.0 transitional//en">

Please don't post HTML to USENET.  A lot of us (especially with Unix
backgrounds) don't bother to use HTML capable newsreaders.
--
Ric Werme                            | werme@nospam.mediaone.net
http://people.ne.mediaone.net/werme  |       ^^^^^^^ delete
             Vote www.harrybrowne.com for President!


      parent reply	other threads:[~2000-10-26  1:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-24  4:00 Locked file problem Alessandro Ipe
2000-10-25  4:00 ` Joerg Bruehe
2000-10-26  1:31 ` Ric Werme [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox