You need to take the following steps to configure the server. Note that these commands need to be executed with superuser privileges.
ln /cobol_install_dir/bin/cobscp /usr/local/etc/scpd
where cobol_install_dir is the location of your Studio Enterprise Edition for UNIX installation.
When executed, the SCP daemon listens on a special network port. By default this is 696. If this port is already being used on your system or you want to use a different port, you can override the SCP daemon port with the -p argument. For example:
scpd -p 900
Errors, such as port busy, are reported to the standard system syslog facility. You can check /etc/syslog.conf to see which file receives the syslog output.
The SCP daemon can be started from the command line or in a shell script or via the inetd server.
When starting from the command line, make sure that you start the server as part of the system startup process. System startup files vary from system to system: most SVR4 systems look in /etc/rc2.d.
When starting via the inetd server, the configuration is somewhat more complex. However, the system will automatically start the daemon when necessary and close it down when finished. To use this method:
mf-scpd 696/tcp # Micro Focus SCP Daemon
mf-scpd stream tcp nowait root /usr/local/etc/scpd scpd
ps -eaf | grep inet
kill -1 processid
To restrict r-command access to UNIX Publish, remove or rename the SCP program.