series of commands using commons-exec -


i new apache commons-exec.

is there way can send series of commands remote machine without authenticating each time?

would order:

ssh a@b command1 command2 

but apparently commons-exec needs this:

ssh a@b \n command1 ssh a@b \n command2 

any idea?

try

ssh a@b "command1; command2" 

this common way execute multiple command on remote system via ssh within script. should work case well.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -