Script Languages User Guide HP Part Number: 700100-002 Published: February 2014 Edition: J06.14 and all subsequent J-Series RVUs and H06.
© Copyright 2012, 2014 Hewlett-Packard Development Company, L.P. Confidential computer software. Valid license from HP required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor’s standard commercial license. Warranty The information contained herein is subject to change without notice.
Contents About This Document.....................................................................................5 Supported Release Version Updates (RVUs)..................................................................................5 Intended Audience....................................................................................................................5 Related Documentation..............................................................................................................
Tables 1 2 Related Documentation.......................................................................................................5 Script Languages Default File Locations...............................................................................
About This Document This guide describes how to install, migrate, and uninstall Script Languages. Script Languages are Open Source languages that have been ported to HP NonStop systems. The Script Languages product comprises three languages – Perl, PHP, and Python. NOTE: guide. Perl, PHP, and Python are collectively referred to as Script Languages throughout this This guide also includes NonStop specific support information for the Script Languages’ features.
700100-001 is a new manual. Document Organization This document is organized as follows: Section Contents “Introduction to Script Languages” (page 9) This chapter provides a brief overview of the Open Source Script Languages that have been ported to NonStop systems. “Installing Script Languages” (page 11) This chapter provides the installation procedures for installing these Script Languages on NonStop systems.
ENTER RUN CODE ?123 CODE RECEIVED: 123.00 The user must press the Return key after typing the input. [ ] Brackets Brackets enclose optional syntax items. For example: TERM [\system-name.]$terminal-name INT[ERRUPTS] A group of items enclosed in brackets is a list from which you can choose one item or none. The items in the list can be arranged either vertically, with aligned brackets on each side of the list, or horizontally, enclosed in a pair of brackets and separated by vertical lines.
CALL STEPMOM ( process-id ) ; If there is no space between two items, spaces are not permitted. In this example, no spaces are permitted between the period and any other items: $process-name.#su-name Line Spacing If the syntax of a command is too long to fit on a single line, each continuation line is indented three spaces and is separated from the preceding line by a blank line. This spacing distinguishes items in a continuation line from items in a vertical list of selections.
1 Introduction to Script Languages A script language is a programming language that supports the writing of scripts. Scripts are programs written for a software environment that automate the execution of tasks that could alternatively be executed by a user.
NOTE: Any feature of Python is supported on a NonStop system if and only if a POSIX or open standard API is available on OSS of NonStop, and is compatible with the open source product. For example, Python's -R option is not supported on NonStop because it needs /dev/urandom.
2 Installing Script Languages This chapter describes how to obtain, migrate, install, and uninstall Script Languages on a NonStop system. Prerequisites Before you install and use Script Languages, ensure that the following software is installed on the NonStop system: • Open System Services (OSS) environment on a NonStop system running the NonStop operating system H06.25 or later, or J06.14 or later.
1. Extracting the T1203PAX Archive File Contents You can extract the contents of the T1203PAX archive using either the Distributed Systems Management/Software Configuration Manager (DSM/SCM) tool or the COPYOSS command from a TACL prompt. Using DSM/SCM Perform the following steps to extract the contents of the T1203PAX file in the standard OSS directory using DSM/SCM: 1. Obtain the product files from the disk (distribution subvolume (DSV) locations) or tape. 2.
Default File Locations Upon successful installation, the files pertaining to the installed languages are placed in their default locations: Table 2 Script Languages Default File Locations Default File Location Contents /usr/bin Contains Perl, PHP, Python, and other utility scripts. /usr/lib/ Contains subdirectories comprising library files pertaining to Script Languages. This is also the default location where an external package module gets installed, if the package distributes such files.
A Open Source References For comprehensive information, see: 14 • Perl documentation at http://perldoc.perl.org/ • PHP documentation at http://www.php.net/manual/en/ • Python documentation at http://docs.python.org/2.
B Python Features Not Supported on NonStop Systems The following table lists some of the Python standard library modules unsupported on NonStop. Note that this is not a comprehensive list. Queue numbers macpath anydbm dbm gdbm dbhash bsddb sqlite3 ctypes threading thread dummy_threading dummy_thread multiprocessing mmap ssl mailcap mimify MultiFile xml.dom xml.parsers.
C Open Source Script Languages Terms and Conditions The NonStop ports of the Script Languages are based on Open Source software products. Open Source software is available for use under the terms and conditions of the original authors. Perl is licensed for use under The Artistic License 2.0. A copy of The Artistic License 2.0 is available in the package folder and the latest version is available at http://perldoc.perl.org/legal. PHP is licensed for use under The PHP License, version 3.01.
Index D Default file locations, 13 E Extracting PAX Archive Using COPYOSS command, 12 Using DSM/SCM, 12 F Fallback, 11 I Installation, 11 Installing script languages, 12 M Migration, 11 O Obtaining Supported Version, 11 Unsupported Version, 11 P Perl Features, 9 Functions, 10 PHP Features, 9 Functions, 10 Prerequisites, 11 Python Features, 9 Functions, 10 U Uninstalling script languages, 13 17