JSch for pbrun not working -
i tried execute pbrun using jsch. gets infinite loop. tried same program using jsch site examples execute command. tried session.setpty(true) before session. connect(). still, not working. please help.
i've found solution own research. can use pbrun -c option launch pbrun , command output in 1 shot. in case, have passwordless connectivity. pbrun su - username -c 'command'
Comments
Post a Comment