Installation Hints
If Moloc is installed on a server, the licence-code
file (.licence, key.licence) must contain a code line for each machine
from which Moloc is to be started.
Linux, Irix, OSX
- Install the package in a suitable directory (e.g. /apps).
- The programs can now be started in a shell window with the command,
e.g.:
/apps/moloc/bin/Moloc
- To customize, you can set an alias in the
.cshrc (or .logon) file, e.g.:
alias mx '/apps/camm/moloc/bin/Moloc \!* &'
This will enable you to start Moloc on a C-shell with the command 'mx'.
- Alternatively or in addition, you may extend the
path to include the moloc/bin directory with the following line in the
.cshrc file:
set path = ($path /apps/moloc/bin)
Now, you can start any program in the moloc/bin directory by just
typing its name into a C-shell. The program will run in the foreground
unless you terminate the command with a '&' letter, e.g.:
Moloc -d my_structures.sd &
Windows
- Install the package in a suitable directory (e.g. C:\apps).
- Start any program from a CMD-shell with the command,
e.g.:
C:\apps\moloc\bin\Moloc
- Start a program by double clicking its program ikon
in the file explorer.
In this case a new, temporary CMD-shell opens which disappears
again on program termination.
A disadvantage of this procedure
is that the current directory is the moloc/bin directory itself.
- To customize, you may generate a shortcut
on the desktop with the target: C:\apps\moloc\bin\Moloc.exe
Now you can modify the directory in which the program starts by
modifying the properties of the shortcut, in particular the item
'Start in:' on the pane 'Shortcut'.
Now Moloc starts in the desired directory by double-clicking
this desktop ikon.
- To start Moloc in the background, an example file, Moloc.bat,
is provided, which is found in the moloc directory.
Move this file to the C:\Windows (C:\WinNT) directory (which is
in the path) to be able to start Moloc in a CMD-shell with the
command: moloc
Of course, you will have to edit the file in case the moloc path
is different from C:\apps\moloc\bin. If the path contains blanks,
make shure to put it in double quotes properly, e.g.:
start /B C:\"Program Files"\moloc\bin\Moloc.exe %1 %2
(start /B "C:\Program Files\moloc\bin\Moloc.exe" %1 %2 will not
work in Windows XP!)
- If the moloc directory is located on a server the path in
shortcuts or .bat files must, of course, include the server.