Difference between revisions of "Installing Macro Definition Files"

From Vital Soft Wiki
Jump to: navigation, search
>Johno
(Created page with "==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 ...")
 
>Johno
(Installing Macro Definition Files)
 
(3 intermediate revisions by the same user not shown)
Line 8: Line 8:
  
 
*'''Installing a new macrodef file:'''
 
*'''Installing a new macrodef file:'''
#Download the latest macrodef file from the website.
+
:1.  Download the latest macrodef file from the website.
#Login as the askplus user.
+
::* Use right-click download to force a download of the file.
#Make a backup copy of the existing macrodef file.
+
::Use this file with AskPlus '''E.8.3.2 (or higher)''' and Spectrum Release 2015.2.0:  [http://www.vital-soft.com/download/secure/macros/macrodef.samp MacroDef]
#Transfer the macrodef file (ASCII) to '''/ASKPLUS/visimage'''.
+
::Use this file with AskPlus '''E.8.3.1 (or earlier)''' and Spectrum Release 2015.2.0:  [http://www.vital-soft.com/download/secure/macros/macrodef_e81.samp MacroDef]
#Rebuild (''compile'') the macro file as follows:
+
:2.  Login as the askplus user.
<pre>
+
:3. Transfer the downloaded file (ASCII) to '''/ASKPLUS/visimage''':
chmod 644 macrodef  << This step is VERY important for Vital Signs users! >>
+
:4. Backup the current macro and macro definition files:
 +
<blockquote><pre>
 
cd /ASKPLUS/visimage
 
cd /ASKPLUS/visimage
 +
cp macro macro.save.cymd
 +
cp macrodef macrodef.save.cymd
 +
# 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
 
/ASKPLUS/load_macros
 
/ASKPLUS/load_macros
</pre>
+
</pre></blockquote>
:*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>

Latest revision as of 20:44, 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.
  • Use right-click download to force a download of the file.
Use this file with AskPlus E.8.3.2 (or higher) and Spectrum Release 2015.2.0: MacroDef
Use this file with AskPlus E.8.3.1 (or earlier) and Spectrum Release 2015.2.0: MacroDef
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.