如何使用ant的sshexec来后台运行一个shell
lasse 2008-01-28 04:31:56 <target name="startapp">
<sshexec host="${host}"
username="${username}"
password="${password}"
trust="true"
command="nohup xx/xx/startWebLogic.sh &"/>
</target>
我用ant连ssh,执行启动weblogic的shell,但无论加了nohup和&,ant都是将信息打印在前台,只能通过再加上timeout="10000"属性,让登录,启动后的10秒后退出,unix后台的weblogic还在运行,但用timeout不是好的解决方案,因为build fail了。
请问如何让ant跑ssh远程调用shell可以让shell后台运行?