Installation guide
Understanding matlabserver
3-7
Changing Initial Data
Edit matlabserver.conf on Windows NT. On Solaris/Linux run the webconf
script to initialize the
matlabserver.conf file. Edit this file if you want to
change options further, particularly those that
webconf cannot set on the
command line. To see any changes you have made to
matlabserver.conf, you
need to stop and restart the MATLAB Web Server.
Type
matlabserver -h on Windows NT (webconf -h on Solaris/Linux) for a list
of additional editable
matlabserver.conf options.
If
matlabserver cannot locate a matlabserver.conf file, it uses the defaults.
Using matlabserver
When we viewed the source of the webmagic1.html file, we observed the line of
HTML code
<FORM ACTION="/cgi–bin/matweb.exe" METHOD="POST">
and we noted that this line establishes communication with MATLAB. matweb
is a program that resides on the HTTP server and communicates with
matlabserver. matweb requires information found in matweb.conf to locate
matlabserver (which could be running on a different machine).
matweb Program
matweb is a client of matlabserver that uses Common Gateway Interface (CGI)
to get data from HTML forms. It transfers the information to
matlabserver,
which then runs applications written in M-files to produce responses.
Table 3-1: matlabserver Basic Options
Option Meaning
-p [n]
Port matlabserver listens on. Default is 8888.
-m [n]
MATLABs to run. Default is 1.
-o timeout
Number of seconds to wait for matlabserver to
start (range from
1 to 32000). Default is 300.
-a path
Path prepended to the MATLAB path at startup
No default.