File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ANT tell telnet task problem

 
aresh babu
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI All,

i am writing ANT script to call remove server by using telnet task. I wrote like ths

<target name="load">
<telnet server="server name" userid="username" password="pass">
<write>cd sms</write>
<write>ls -al</write>
<write>chmod 777 *</write>
<write> rm -rf folder1</write>
<write>rm -rf test.ear</write>
</telnet>
</target>

Here my problem is i am not able to delete the folder and the ear file also.
But other operations are performing succsfully except deleting the files and folders.

Is there any other way to delete files and folders in the remote system by using ANT script???

Please let me know and help me urgently.


Thanks in advance
ARESH BABU
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What errors are you getting back? If you perform the steps manually, does it work?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic