Telnet ant调用windows bat
在ant deploy.xml中使用以下ant脚本来连接远程windows服务器和 调用import.bat in write标记,该标记当前正在调用unix环境,我已更改 叫蝙蝠而不是sh 它没有在windows服务器中调用导入cmd 请帮助了解如何更改此项Telnet ant调用windows bat,ant,build,telnet,Ant,Build,Telnet,在ant deploy.xml中使用以下ant脚本来连接远程windows服务器和 调用import.bat in write标记,该标记当前正在调用unix环境,我已更改 叫蝙蝠而不是sh 它没有在windows服务器中调用导入cmd 请帮助了解如何更改此项 <telnet userid = "${remote_username}" password = "${remote_password}" server = "${remote_host}"> <read&g
<telnet userid = "${remote_username}" password = "${remote_password}" server = "${remote_host}">
<read>></read>
<write>cd ${remote_ws_path}xx/testSystem</write>
<read>></read>
<!-- <write>./import.sh -u ${remote_ws_user} -p ${remote_ws_password} -f ${remote_temp}${rddp_file} | tee ${remote_ws_path}ws/logs/impor_${cu_drop}.log</write> -->
<write>import.bat -u ${remote_ws_user} -p ${remote_ws_password} -f ${remote_temp}${rddp_file} | tee ${remote_path}ws/logs/import_${cu_drop}.log</write>
<read>></read>
</telnet>
>
cd${remote_ws_path}xx/testSystem
>
import.bat-u${remote\u ws\u user}-p${remote\u ws\u password}-f${remote\u temp}${rddp\u file}tee${remote\u path}ws/logs/import{cu\u drop}.log
>
谢谢我不确定您的问题是什么,但我注意到window没有tee命令,请尝试使用task