java - Using Jsch to run confirmable commands in CLI -


is there way use jsch execute command requires confirmation, following one:

>reboot please confirm (y/n)? y 

didn't find answer on or documentation on how it. tried execute "reboot", read output till "(y/n)?" faced , printing "y" stream. though, no luck far.

have tried writing outputstream getoutputstream() on channelexec after reading inputstream , waiting phrase 'please confirm...'?


Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c++ - CryptStringToBinary API behavior -