FW: OT: broken/useless ansi - console driver??
Bill Campbell
bill at celestial.com
Tue Oct 25 10:42:42 PDT 2005
On Tue, Oct 25, 2005, Kenneth Brody wrote:
>Quoting Jean-Pierre A. Radley (Tue, 25 Oct 2005 12:44:06 -0400):
>[...]
>> Nothing is going to be 'fixed', and you do not need to use ps.
>>
>> If you want to place a new binary in place, first move the old one to a
>> different name, then copy in the new program. People currently running
>> the old version will see no change, but subsequent calls for the program
>> will get the new version.
>>
>> mv /path/to/running/program /path/to/running/program.O
>> cp /path/of/new/program /path/to/running/program
>> rm /path/to/running/program.O
>>
>> The old version is not actually unlinked until any running instance has
>> concluded.
>
>Why rename it before removing it? Can't you simply do:
>
> rm /path/to/old/binary
> cp /path/to/new/binary /path/to/old/binary
I still prefer renaming without removing the renamed file for
those occassions when the new file is broken (on rare occassions
I do create executables with bugs :-). That allows one to
restore the old version if necessary.
Bill
--
INTERNET: bill at Celestial.COM Bill Campbell; Celestial Software LLC
UUCP: camco!bill PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/
``The children who know how to think for themselves spoil the harmony of
the collective society that is coming, where everyone would be
interdependent.'' 1899 John Dewey, educational philosopher, proponent of
modern public schools.
More information about the Filepro-list
mailing list