jsch


jsch + running multiple command in shell after SU and then close channal


My requirement is as follow:
I have to login to Unix box using my credentials and once login, I have to do su to different user. I need to provide password and reason for scsu command.
once su successful, I have to run set of commands one after another as that user.
On completion of executions, close channel and session both.
I tried to use Shell channel but I am able to fire scsu only ... need help to complete remaining requirement of executions of command and closing channel

Related Links

How to interact with the script after its execution using Jsch
java jsch -executing multiple unix commands
How to get one stream from error stream and input stream when calling a script using JSCH
SFTP using jschexception verify false sometimes fails
how to increase the jsch buffer size?
The cipher 'aes256-cbc' is required, but it is not available
How to pause/resume procedure while/after upload file by ChannelSftp
jsch + running multiple command in shell after SU and then close channal
NGit/Nsch Generating SSH Keypair (c# Jgit)
Extract userInfo from JSCH stream
Running a Shell Script using java ( process Builder ) with a specific unix user
Java jsch and resuming file upload after interruption?
How to pass a variable through channel in Jsch?
How to handle passwords prompts in expectj
Retaining the last modified date while using ChannelSftp for file transfer
Is there a limit to how many channels can be open per session in JSch?

Categories

HOME
log4j
deployment
hook
debugging
tizen
onedrive
fft
spring-cloud-stream
serverspec
indesign
adfs
reveal.js
php-7.1
windows-phone-7
visual-studio-2005
carthage
designer
try-catch
workload-scheduler
opentracing
openrefine
serilog
openedx
jtextfield
predix
abi
cloudhub
one-to-many
maquette
typo3-6.2.x
gitignore
stormpath
directx-10
iframe-resizer
column-family
protovis
android-ble
revolution-slider
az-application-insights
ansible-playbook
trim
mesos-chronos
cubic-spline
logfiles
dotcover
csound
kbuild
sqlclient
sybase-asa
boost-preprocessor
cudafy.net
flutterwave
gcsfuse
spring-cache
redundancy
rotativa
dstu2-fhir
measures
asp.net-4.5
rvest
nessus
browser-link
ford-fulkerson
retina
quicklisp
pretty-print
typekit
c3
network-interface
java.util.concurrent
rdtsc
websocket4net
xojo
cloud-connect
jmapviewer
ftps
buster.js
rabl
pygit2
kyotocabinet
coderush
pysimplesoap
cascalog
twrequest
tridion-worldserver
subscript
h.323
zend-translate
icanhaz.js
perfect-hash
backcolor
private-members

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App