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
Post a Comment