Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation  Back up to About Overview 
  
[+] Expand All
[-] Collapse All

scriptcheck

The scriptcheck utility is a command-line application that enables you to check the Steel-Belted Radius Carrier JavaScript configuration files for syntax errors.

Note: The scriptcheck utility verifies that your script is syntactically correct. The scriptcheck utility does not guarantee that your script is free of runtime errors or produces correct results. If your script does not appear to be working properly, review the Steel-Belted Radius Carrier log for error messages and enable script tracing to diagnose the problem.

Unpacking the scriptcheck Utility

The scriptcheck utility and its required shared libraries are packaged as a gzip compressed tar file for Solaris - scriptcheck.version.sol.tgz, in the Support_Files/scriptcheck directory on the Steel-Belted Radius Carrier installation CD.

You can copy the appropriate scriptcheck executable version to any convenient location and run it there, provided that you also copy the radius.lic file to the same location.

Before you can run the scriptcheck utility, you must unpack the correct version of the archive for your platform into a destination folder or directory. With the archive in the destination directory, enter this command to extract its contents:

% gunzip -c scriptcheck.version.platform.tar.gz | tar xvf -

The files to extract are:

  • scriptcheck
  • libnspr4.so
  • libjs.so
  • README.SCRIPTCHECK

Running the scriptcheck Utility

To run the scriptcheck utility and verify scripts, follow these steps:

  1. Before running the scriptcheck utility for Solaris, set the LD_LIBRARY_PATH environment variable to point to the location where the shared object files are installed.
  2. Open a command shell (cmd) and change to the scriptcheck directory.
  3. Execute the scriptcheck command by specifying the name of the script as the argument. For example, this command validates the script contained in the myscript.jsi file:
    % cd scriptcheck% setenv LD_LIBRARY_PATH .% scriptcheck myscript.jsiLoading script from file ‘myscript.jsi’Scriptcheck: script file ‘myscript.jsi’ compiled successfully

When the scriptcheck utility runs, it loads the [Script] section in the specified .jsi file and uses the JavaScript interpreter to compile the script text. Any error messages produced during script compilation are printed on the console. You can then correct the errors and rerun scriptcheck to verify that the script compiles correctly.

Modified: 2017-09-27