From owner-freebsd-questions Sat Jul 6 07:46:24 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA13216 for questions-outgoing; Sat, 6 Jul 1996 07:46:24 -0700 (PDT) Received: from titan.cs.mci.com (titan.cs.mci.com [166.37.12.241]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id HAA13184 for ; Sat, 6 Jul 1996 07:46:22 -0700 (PDT) Received: by titan.cs.mci.com; (5.65v3.2/1.1.8.2/24Jan96-1045PM) id AA19573; Sat, 6 Jul 1996 08:46:46 -0600 Date: Sat, 6 Jul 1996 08:46:46 -0600 (MDT) From: "Thomas S. Traylor" To: freebsd-questions@freebsd.org Subject: How do you write to an executable (binary)? Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Here's what I'm trying to do: I have a program that will prompt the user for a value. I would like to write that value to the executable (binary) file. (Using open, lseek, write, close) Problem: When I open the file I get the following error: "Error: Text file busy". The message number is [ETXTBSY]. I'm able to do this with other OS. How can I get this to work with FreeBSD? Any ideas or suggestions would be greatly appreciated. Thanks, Tom -- Thomas Traylor Thomas.Traylor@mci.com tst@titan.cs.mci.com (719) 535-1269