Difference between revisions of "Installing Macro Definition Files"

From Vital Soft Wiki
Jump to: navigation, search
>Johno
(Installing Macro Definition Files)
>Johno
(Installing Macro Definition Files)
Line 8: Line 8:
  
 
*'''Installing a new macrodef file:'''
 
*'''Installing a new macrodef file:'''
:1. Download the latest macrodef file from the website.
+
:1. Download the latest macrodef file from the website.
:2. Login as the askplus user.
+
:2. Login as the askplus user.
:3. Transfer the downloaded file (ASCII) to '''/ASKPLUS/visimage''':
+
:3. Transfer the downloaded file (ASCII) to '''/ASKPLUS/visimage''':
<pre>
+
:4.  Backup the current macro and macro definition files:
mv macrodef macrodef.save.cymd
+
<blockquote><pre>
 +
cd /ASKPLUS/visimage
 +
cp macro macro.save.cymd
 +
cp macrodef macrodef.save.cymd
 
# Where cymd is today's date.
 
# Where cymd is today's date.
 +
</pre></blockquote>
 +
:5.  Rebuild (''compile'') the macro file using the new definition file as follows:
 +
<blockquote><pre>
 +
cd /ASKPLUS/visimage
 +
# Note the file you uploaded may have a different name than macrodef.samp.
 +
chmod 644 macrodef.samp  << This step is VERY important for Vital Signs users! >>
 
cp macrodef.samp macrodef
 
cp macrodef.samp macrodef
# Note the file you uploaded may have a different name.
 
</pre>
 
:4. Rebuild (''compile'') the macro file as follows:
 
<pre>
 
chmod 644 macrodef  << This step is VERY important for Vital Signs users! >>
 
cd /ASKPLUS/visimage
 
 
/ASKPLUS/load_macros
 
/ASKPLUS/load_macros
</pre>
+
</pre></blockquote>
:5. Verify that the macro file permissions are correct:
+
:6. Verify that the macro file permissions are correct:
<pre>
+
<blockquote><pre>
 
ll macro
 
ll macro
 
The file must be writeable by all users, at least 666.
 
The file must be writeable by all users, at least 666.
</pre>
+
</pre></blockquote>

Revision as of 18:42, 23 September 2015

Installing Macro Definition Files

The AskPlus macro file is built by running the load_macros script. When the script is executed the compiled macro file is built in the current directory. The compiled macro file is created from the following definition files:

  • /ASKPLUS/visimage/macrodef
  • /ASKPLUS/visimage/usermdef
  • ./usermdef
  • ./vsmacdef
  • Installing a new macrodef file:
1. Download the latest macrodef file from the website.
2. Login as the askplus user.
3. Transfer the downloaded file (ASCII) to /ASKPLUS/visimage:
4. Backup the current macro and macro definition files:
cd /ASKPLUS/visimage
cp macro macro.save.cymd
cp macrodef macrodef.save.cymd
# Where cymd is today's date.
5. Rebuild (compile) the macro file using the new definition file as follows:
cd /ASKPLUS/visimage
# Note the file you uploaded may have a different name than macrodef.samp.
chmod 644 macrodef.samp  << This step is VERY important for Vital Signs users! >>
cp macrodef.samp macrodef
/ASKPLUS/load_macros
6. Verify that the macro file permissions are correct:
ll macro
The file must be writeable by all users, at least 666.