"Karthik" <com> wrote in message
Because the running program needs continuous access to the unmodified
file. UNIX machines don't actually load a file into memory in order to run
it, they just map it into memory and allow it to load in as needed. As a
result, the file cannot be modified while it's being executed.
Yes, UNIX does allow *replacing* binaries on the fly, but you're not
trying to replace it, you're trying to modify it. The easiest solution is
probably to 'rm' the file before trying to upload. This will prevent you
from attempting to modify it.