The following example shows a Perl script, which will not only print all file names, number of all files and number of all text files, but also store these values in the variables defined with :REGISTER_VARIABLE.
! Transfer resource file (perl library) from DB to agent :ATTACH_RES "STORE_LIB", "FUNC1", C
! Prepare resource file path string :SET &cachepath# = STR_SUB("&$AGENT_RESOURCES_CLIENT#", "\", "\\"):SET &funcfile# = STR_CAT(&cachepath#,"func.pl")
# include transferred file require "&funcfile#";
# Call function "myadd" of library file and print out result my $val1 = 10; my $val2 = myadd($val1); print "calculated via lib function = $val2";
To be able to use the relevant script of an external interpreter in a Job object, you have to define the external interpreters using the system variables UC_EXT_INTERPRETERS_WINDOWS and UC_EXT_INTERPRETERS_UNIX respectively.
Feel free open a Request with us should you need assistance
Retrieving data ...