Script should change the permission of those files which I a

Advertisement

Ganesh_Pagar
Guest

Script should change the permission of those files which I a

I am transferring few html files from windows to UNIX box

Following is my script
open corrftps:Sad4ren3@corr-ema.csfb.net:22
option batch abort
option confirm off
lcd "C:/ganesh/Applications/RnA/APACScript/html"
cd /app/securities/corr/config/mydomain/applications/distribution/researchprofiles/nonresearch
put *.html
chmod 777 *.html
close


On UNIX box other user has also placed his HTML. so Script can not change permission of these files.
My reuirement is: Script should change the permission of those files which I am transferring.


Currently I am getting error Cannot change properties of file 'Mobile_Edition.html'.
Permission denied.
Error code: 3
Error message from server: Permission denied
Request code: 9

because these files are belongs to other user.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Script should change the permission of those files which I a

You need to be an owner of the files to have permissions to change their properties.

Reply with quote

Advertisement

You can post new topics in this forum