Home Help Center

Questions about Freeze Library Demo

debrmdebrm Member Deborah Reed-MargetanOrganization: CSSM, ISUProject: NRI
Can someone give me some additional information about how the
Freeze library demo works?

There is a file called "books" which contains a series
of "add" statements that I assume should be used to load
the Berkeley databases db/books and db/authors. How/when
is this done?

Also I do not understand what the role of "collocated"
is in relation to "server" and "client".

Thank you


  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff

    Sorry, we really should add README files for the Freeze demos. The books file is a script that's meant to be executed by the client. So, in one window you start the server, and in another window you do the following:

    % client < books

    By redirecting the client's input from the books file, it executes all of the commands and populates the server's database. You can then start the client again without the extra arguments to experiment with the other commands (type "help" to get a list of commands).

    The collocated version simply combines the client and server into one executable, so you could do the following:

    % collocated < books
    % collocated

    In this case you don't need to use the server executable.

    Take care,
    - Mark
Sign In or Register to comment.