Renaming a file using sftp
Posted: Wed Oct 10, 2012 1:10 pm
Guys
I need to connect to remote server using Sftp and rename a file. I used below command in executive command activity stage. but not working. If I execute below commands separately in putty its working fine. Any thoughts on why it is not working ? or is there any other way of doing ?
I can only do sftp to remote server not ssh or anything like that.
Command:
sftp userid@hostname; rename /home/File_1.txt /home/act/File_2.txt
Thanks
I need to connect to remote server using Sftp and rename a file. I used below command in executive command activity stage. but not working. If I execute below commands separately in putty its working fine. Any thoughts on why it is not working ? or is there any other way of doing ?
I can only do sftp to remote server not ssh or anything like that.
Command:
sftp userid@hostname; rename /home/File_1.txt /home/act/File_2.txt
Thanks