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


 
SPOOL log-file or LOG log-file Command................................................................................64
Using the CLEAR Option...........................................................................................................64
Logging Concurrent Neoview Script Sessions...........................................................................64
Stopping the Logging Process.........................................................................................................64
Viewing the Contents of a Log File.................................................................................................64
5 Running Scripts in the Neoview Script Interface.......................................................67
Creating a Script File.............................................................................................................................67
Supported SQL Statements in Script Files.......................................................................................67
Permitted Neoview Script Interface Commands in Script Files......................................................67
Disallowed Interface Commands in Script Files........................................................................67
Comments........................................................................................................................................67
Section Headers...............................................................................................................................67
Example of a Script File...................................................................................................................68
Running a Script File.............................................................................................................................68
Logging Output....................................................................................................................................69
Running Scripts in Parallel...................................................................................................................69
6 Running Neoview Script From Perl or Python............................................................71
Setting the Login Environment Variables.............................................................................................71
Setting the Login Environment Variables on Windows..................................................................71
Setting Login Environment Variables on the Command Line...................................................71
Setting Login Environment Variables in the System Properties................................................72
Setting the Login Environment Variables on Linux or UNIX.........................................................73
Setting Login Environment Variables on the Command Line...................................................73
Setting Login Environment Variables in the User Profile..........................................................74
Perl and Python Wrapper Scripts.........................................................................................................74
Launching Neoview Script From the Perl or Python Command Line.................................................74
Perl and Python Commands on Windows......................................................................................75
Perl and Python Commands on Linux or UNIX.............................................................................75
Launching Neoview Script From a Perl or Python Program...............................................................76
Setting the Login Environment Variables........................................................................................76
Using SQL Statements in a Perl or Python Program.......................................................................76
Example of a Perl Program (example.pl)...................................................................................76
Example of a Python Program (example.py).............................................................................77
Running the Perl or Python Program..............................................................................................77
A Neoview Script Interface Commands........................................................................79
@ Command..........................................................................................................................................81
Syntax..............................................................................................................................................81
Considerations.................................................................................................................................82
Examples..........................................................................................................................................82
/ Command...........................................................................................................................................82
Syntax..............................................................................................................................................82
Considerations.................................................................................................................................82
Example...........................................................................................................................................82
CLEAR Command................................................................................................................................83
Syntax..............................................................................................................................................83
Considerations.................................................................................................................................83
Example...........................................................................................................................................83
CONNECT Command..........................................................................................................................83
Syntax..............................................................................................................................................83
Considerations.................................................................................................................................83
Table of Contents 5