Inter-Workstation Remote Plotting

At this time, only remote plotting with a Windows PC as the local machine and a UNIX workstation as the remote host is supported.

Note: If CCD_LOCAL is defined (on Windows), it will take precedence over CCD_ROOT. In this case, substitute CCD_LOCAL for CCD_ROOT in these instructions when Windows files are involved.

There are three parts to remote plotting between workstations. The first is the creation of plot request files by CCD on Windows, the second is to FTP request files from the local machine to the remote machine via rmtplot.bat and the third is to plot the requests on the remote machine via a program called rmtplot. This program will run on the remote machine and it will monitor $CCD_ROOT/PLOT/REQUESTS for datasets to send to the plot program.

In order to get all three parts working in unison, a flat file called hostid_paths, residing in CCD_ROOT\PLOT on the local machine, will contain remote hostids and their corresponding $CCD_ROOT paths. This will provide the local machine with the information it needs to FTP the remote plot requests to the correct directory on the host machine.

Remote plot request files are created with the hostid embedded in their names. This will allow the host machines to recognize which requests belong to them. The format of the request file name is:


The rmtplot program renames each request file prior to sending it off to the plot program. The new name does not conform to the format shown above. This will prevent a request file from ever being processed twice.

The program rmtplot has 1 argument. The argument is:

sleep: This is the number of seconds rmtplot should wait before checking for request files. If no argument is supplied, a time of 300 seconds (5 minutes) is used.

An example of rmtplot might be:

rmtplot 1200 <- this will check for req files every 20 minutes


rmtplot <- this will check every 5 minutes

The CCD environment on NT will need additional files. For each remote hostid, CCD on Windows will search for its plotter_table in CCD_ROOT\PROFILE. If it does not find it, CCD on Windows will try to get it via FTP from the host's CCD_ROOT/PROFILE. The user may do this step ahead of time by FTPing the host plotter_table in binary. FTP the remote machine's plotter_table to the CCD_ROOT\PROFILE directory on your Windows PC and append _hostid to the name. For example, wk107's plotter_table would be named plotter_table_wk107.

In CCD_ROOT\PLOT, the file hostid_paths will be needed. An example of the hostid_paths file might look like:

/* this file is used to map hostids to their CCD_ROOT paths
/* The format of each line should be: hostid path
/* The hostid must start in column 1. There must be at least
/* 1 blank between the hostid and its path. There must be at
/* least 1 blank between the path and any trailing comments.
/* Any line not starting with a valid hostid name (as defined
/* in FSTABLE from Cadprof) will be treated as a comment.
hp26 /u/users/sa00017/ccd.hp422 HP
wk107 /u/users/sa00017/ccd.422 AIX