Home Applications iriscode

iriscode

This application is not supported by InterSystems Corporation. Please be notified that you use it at your own risk.
2
1 reviews
0
Awards
94
Views
0
IPM installs
0
0
Details
Releases
Reviews  (1)
Issues
Command line utility to write code outside of IRIS

What's new in this version

Initial Release

AUTHOR - Raman Sailopal

BACKGROUND -

This Linux command line utility allows you to write Intersystems objectscript code outside of an IRIS environment, i.e. using vi and then execute it from the command line in much the same was as you do with awk

PROCESS -

A temporary flat file is created with all the relevant Intersystems routine import headings followed by the code from the passed file. This is then imported into IRIS, run, and then deleted, before finally removing the raw flat file

PREREQUISITES -

It is assumed that a working version of Intersystems IRIS is installed as as well as iriscmd (attained from here - https://github.com/RamSailopal/iriscmd

PARAMETERS -

       First - The name of the raw code file
       Second (optional) - The IRIS instance name.
       If this is not set the environmental variable IRISINST will be checked

EXAMPLE USAGE -

Example 1:

       cat testrout.ro
        S TESTVAR="hello;there;how;are;you"
        W $P(TESTVAR,";",4)
   iriscode testrout.ro "IRIS"
   are

Example 2:

        export IRISINST="IRIS"
        cat testrout.ro
        #!/usr/local/bin/iriscode
         S TESTVAR="hello;there;how;are;you"
         W $P(TESTVAR,";",4)
    chmod o+x testrout.ro
    ./testrout.ro
    are

INSTALLATION -

        git clone https://github.com/RamSailopal/iriscode.git
        cp iriscode/iriscode /usr/local/bin
Version
1.0.013 Apr, 2021
Category
Solutions
Works with
InterSystems IRIS
First published
13 Apr, 2021
Last checked by moderator
27 Jun, 2023Works