SysExecute() Function Not Able To Execute Command Line Argument (Doc ID 1351594.1)

Last updated on SEPTEMBER 26, 2016

Applies to:

Oracle Communications Billing and Revenue Management - Version: 7.3.1.0.1 and later   [Release: 7.3.1 and later ]
Information in this document applies to any platform.

Symptoms

The sysExecute() function is not able to execute a command line argument: trying to execute any command line argument with this function is always returns -1.

Using sysExecute() Function in ISC_PopulateOpcodeAndUtilBlock_Diameter.isc

Sample code from iScript is

String cmdline = "date";
String retbuf;
Long timeToWait = 10; // 10 seconds
Long retval = sysExecute( cmdline, retbuf, timeToWait );
if ( retval != -1 )
{
  // code to process retbuf
  logPipeline("The Value of returnbuf is " +retbuf);
}

else
{
  logPipeline(" sysExecute is returning -1 value");
  logPipeline("The Value of returnbuf is " +retbuf);
}

Pipeline log shows it is going in else part always and not printing the retbuf value.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms