Sorry, this is for Unix/Linux.
What you and Jim said is what I thought was possible...I even tested it,
and it worked. However, when I proposed this to others in my company,
they basically said that I was nuts. They said the proper way to do this
was to:
- put the new updated video clip on the server under a different name
- have a database table with the names of the video clips in them,
associated with the links in the web pages. So that once a video clip is
updated, then you would update the database to reflect the new name of
the video clip. Then the web pages would be dynamically generated by
reading the database, and would point to the new name of the video clip.
Anyways, this seems to me more work then needed, unless you specifically
wanted to keep a database of video links for metadata type of
information. I am not sure if this is how it is done in a windows
environment or not, since most of the people in my company come from a
windows background. So, I wanted to get a feel of what other people were
doing in this situation.
thanks for the help,
--brett
Rob Mayoff wrote:
>
> +---------- On Sep 14, Brett Schwarz said:
> > I have a web site that links to video clips; such that when someone
> > clicks on them, it invokes the player, and streams the video clip. What
> > is the best way to update those video clips such that it does not
> > interrupt any streaming, or corrupt any of the files. I guess this could
> > be said for content in general, but this is my situation.
>
> Windows NT or Unix?
>
> On Unix, you can atomically rename a file to have the same name as
> another file. Any process with the old file open continues accessing the
> old file. When all such processes have closed the old file, the kernel
> frees the storage used by the old file. Meanwhile, processes that open
> that filename get the new file.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com