- Machine data needed to generate the licence code
can also be obtained by starting any of the programs from a window (CMD).
If no valid licence code is found, the program prints this data into the
window and stops.
- 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,
- 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
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 &
Install the package in a suitable directory (e.g. C:\apps).
Start any program from a CMD-shell with the full path,
The beginning of this command (before '\moloc...' is specific to
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 further 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.
Background: To start Moloc in the background,
an example file, m.bat, is provided, which is found in the moloc
After adjusting the moloc-path in this file (see below),
move this file to the C:\Windows (C:\WinNT) directory (or any directory
which is in the system's path) to be able to start Moloc in a CMD-shell
with the command: 'm Moloc'
Similarly, 'm Mol3d' or 'm Msrfvl' etc. will start the program Mol3d
or Msrfvl etc.
Of course, you will have to edit the file in case the moloc path
is different from C:\apps\moloc. If the path contains blanks,
make shure to put it in double quotes properly, e.g.:
start /B C:\"Program Files"\moloc\bin\%1 %*
If the moloc directory is located on a server the path in
shortcuts or .bat files must, of course, include the server.