Hi folks I need to delete a directory in unix and create a new one - all should be part of ant task in windows machine Thanks Vishu
views:
130answers:
2
A:
It might be worth it to try it this way as I am not 100% sure if you can actually script a logging in, security implications otherwise, your password would be exposable...so I have not really done this before by using putty -m
using the script in place.
putty host -l login_name -pw password -m my_script
my_script
would contain
rmdir some_directory_name
The other way I can think of it is to use AutoIt, which is a BASIC like syntax and to automate the process of logging on, and feeding a rmdir directory_name
, perhaps to make it more flexible, supply the host, user id, password and the directory name to the autoit script which, can by the way be compiled to a standalone program...
tommieb75
2010-03-08 17:33:03
Thanks for ur response.But i need to do everything it from ANT build,so can u please tell me how to write ANT target for that
vishu
2010-03-08 18:47:24
A:
Hi
I used [SSHEXEC][1] to create and delete directory on remote unix machine.I just return shell script to create and delete directory and run that using sshexec.
Same thing we can do using FTP,But i dont have access to ftp so i used sshexec its working good.
vishu
2010-03-09 17:45:13