Re: How to execute a unix script from a java app ?
Friday, November 17, 2006 05:04 AM
I would use Ant's . Just add the ant.jar and jsch.jar to your applications classpath, instantiate org.apache.tools.ant.taskdefs.optional.ssh.SSHExec and feet that with the needed data. Then invoke execute(). So basically: use Ant as an class library ;-)