HP (Hewlett-Packard) 544530-001 Computer Accessories User Manual


 
export HPNVS_SERVER=host-name:port-number
export HPNVS_USER=user-name
export HPNVS_PASSWORD=password
export HPNVS_DATASOURCE=data-source-name
At each command prompt in the C shell, enter one of these commands:
setenv HPNVS_SERVER=host-name:port-number
setenv HPNVS_USER=user-name
setenv HPNVS_PASSWORD=password
setenv HPNVS_DATASOURCE=data-source-name
Setting Login Environment Variables in the User Profile
To set the login environment variables in the user profile:
1. Open the user profile (.profile or .bash_profile for the Bash shell) in the /home
directory. For example:
vi .profile
2. Add these export commands (or setenv commands for the C shell) to the user profile.
For example:
export HPNVS_SERVER=host-name:port-number
export HPNVS_USER=user-name
export HPNVS_PASSWORD=password
export HPNVS_DATASOURCE=data-source-name
3. To activate the changes, either log out and log in again or execute the user profile. For
example:
. .profile
Perl and Python Wrapper Scripts
The Perl or Python wrapper script enables you to invoke Neoview Script from Perl or Python to
execute an SQL statement. The Perl wrapper script is hpnvs.pl, and the Python wrapper script
is hpnvs.py. By default, these wrapper scripts are located in the Neoview Script bin directory:
On Windows:
hpnvs-installation-directory\nvscript\bin
hpnvs-installation-directory is the directory where you installed the Neoview
Script software files. For more information, see Table 2-1 (page 34).
On Linux or UNIX:
hpnvs-installation-directory/nvscript/bin
hpnvs-installation-directory is the directory where you installed the Neoview
Script software files. For more information, see Table 2-1 (page 34).
To use the Perl and Python wrapper scripts, see:
“Launching Neoview Script From the Perl or Python Command Line” (page 74)
“Launching Neoview Script From a Perl or Python Program” (page 76)
Launching Neoview Script From the Perl or Python Command Line
You can run an SQL statement by invoking the Neoview Script Perl or Python wrapper script
on the Perl or Python command line:
74 Running Neoview Script From Perl or Python