To delete any files from the remote machine we can use the following -:
ssh -l psadmin -q xx.xx.xxx.xxx rm /xxx/xxxx/saurabh/1/asjdhl.txt
To Move files
ssh -l psadmin -q xx.xx.xxx.xxx mv /xxx/xxxx/saurabh/1/asjdhl.txt /opt/customer/saurabh/2/
You will be prompted for a password though, however you may want to write a simple shell to do the same.
---saurabh
No comments:
Post a Comment