XWatch <br> The Logfiles Watcher

- Next chapter
- Previous chapter
- Table of contents

# Chapter 4: Compiling xwatch

Follow these steps.

- You will need the XForms library and include files to compile `xwatch`. Check the `Makefile` in the `src` subdirectory for two ftp sites that carry XForms for Linux. Obtain the library and install it. XWatch will happily run with XForms version 0.81 or 0.88.

- In the `src` subdirectory, edit the `Makefile` and adjust some defines at the top. E.g., a `make install` copies the binary by default to `/usr/local/X11/bin`; adjust that if you don't like this behavior.

- Next, do a `make install`, followed by a `make clean`.

- Copy the file `XWatch.ap` from the source directory to `/usr/lib/X11/app-defaults/XWatch`. Edit the file and state your favorite settings.

- Next, start the program `xwatch` with some file arguments in your logfiles directory. If you're satisfied with the appearance and workings of `xwatch`, add the invocation to your script that starts an X session.

- Next chapter
- Previous chapter
- Table of contents