On Wednesday 17 January 2001 11:19 pm, you wrote:
> I'm trying to help a friend with a problem.  He has some scripts on a
> webserver, the problem is when ever the script runs and it needs to
> write to a file, it deletes the content of the file(s).  Anyone got any
> ideas?!  Thanks in advance,

Without seeing the script or knowing what the script is written in, only 
general advice can be given.  There exist various mechanisms for appending 
writes to a file as opposed to overwriting the file.  In bash the 
redirectors are > for overwrite and >> for append.  Various languages have 
other constructs for file handling.   Check to see how the file is being 
opened, and how it is being opened.  Make sure it is being opened for 
appending only if this were say a log file.

-- 
Matthew Micene                     A host is a host from coast to coast,
Systems Development Manager        and no one will talk to a host too close
Express Search Inc.                Unless the host that isn't close 
www.ExpressSearch.com              is busy, hung or dead




Reply via email to