All Downloads are FREE. Search and download functionalities are using the official Maven repository.

e.msidor.maven.plugins.groovy2ssh-maven-plugin.1.0.0.source-code.hello.groovy Maven / Gradle / Ivy

Go to download

Maven plugin that allows to execute shell commands via groovy script on remote host through ssh connection. This is basically only the maven plugin wrapper for com.googlecode.msidor.groovy2ssh library whereas the SSH connection is handled by JSCH library.

There is a newer version: 1.0.4
Show newest version
println "Starting script"

outputLine = '';
while ((outputLine = os.readBuffer()) != '$')
{
	print outputLine;
}
print outputLine;

is.sendCommand("ls\n");

while ((outputLine = os.readBuffer()) != '$')
{
	print outputLine;
}
print outputLine;

println 			
println "Ending script"					




© 2015 - 2024 Weber Informatics LLC | Privacy Policy