HEX
Server: Apache/2.4.34 (Red Hat) OpenSSL/1.0.2k-fips
System: Linux WORDPRESS 3.10.0-1160.118.1.el7.x86_64 #1 SMP Thu Apr 4 03:33:23 EDT 2024 x86_64
User: digital (1020)
PHP: 7.2.24
Disabled: NONE
Upload Files
File: //var/opt/OV/bin/instrumentation/ispi-ovperl
#!/bin/sh
###############################
# 
# Version : 11.11.025
#
###############################

##
#-----------------------------------------------------------------
# File 		:	ispi-ovperl
# Description	:	Wrapper Script for executing Perl scripts on 
#			linux systems
#-----------------------------------------------------------------

OVINSTDIR='ovpath -instdir' 
OVDATADIR='ovpath -datadir'

OVINSTDIR=$($OVINSTDIR 2>/dev/null)
OVDATADIR=$($OVDATADIR 2>/dev/null)

OVINSTRPATH=${OVDATADIR}'/bin/instrumentation/'

PARAM=$*
PERLSCRIPT="${OVINSTRPATH}${PARAM}"

PERL=${OVINSTDIR}'/nonOV/perl/a/bin/perl'
if [ ! -f ${PERL} ]; then
	echo "><ERROR: Agent perl path ${PERL} not found. Please check whether the agent has been installed on the server."
	exit 1
fi 
        
#Execute Perl Script

${PERL} -I ${OVINSTRPATH} ${PERLSCRIPT}
  
exit $?