Tivoli Directory Integrator, Version 7.1.1

The shellCommand object

The shellCommand object contains the results from a command line process.

On Microsoft Windows platforms, the shell command starts, but you cannot get output or status from the shell command. See com.ibm.di.function.ExecuteCommand in the Javadocs for available methods.

For example:

var cmd = system.shellCommand ("/bin/ls -l"); 
if ( cmd.failed() ) { 	
	task.logmsg ( "Command failed: " + cmd.getError()); 
} else { 	
	task.logmsg ( cmd.getOutputBuffer() ); 
}
[ Top of Page | Previous Page | Next Page | Contents | Terms of use | Feedback ]
(C) Copyright IBM Corporation, 2003, 2012. All Rights Reserved.
IBM Tivoli Directory Integrator 7.1.1