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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -