rsh -l USER <SERVER> find <TOP LEVEL DIR> -atime <2years> -exec rm -r {} \;kollurianu wrote:Hi all ,
After SFTP'ing the source files successfully to the local server , how to delete files from the remote server ? Any inputs greatly appreciated.
Thanks in advance.
Sftp ing the files and deleting files on remote server.
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 26
- Joined: Mon Jan 23, 2006 12:47 am
Re: Sftp ing the files and deleting files on remote server.
-
- Premium Member
- Posts: 614
- Joined: Fri Feb 06, 2004 3:59 pm
Thanks for your response , Could you please send me exact syntax to be used in command stage (in a job sequencer)?ArndW wrote:You will need to talk with your UNIX administrator. It seems that either "rsh" is not installed or not in your path, likewise will most likely be the case for "ssh" as well. Once you sort out getting this command working (with or without adding userid/password) then you can implement it into DataStage.
Any inputs greatly appreciated.