Topic "Script should change the permission of those files which I a"

Author Message
Ganesh_Pagar

Guest


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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25014
Location: Prague, Czechia
You need to be an owner of the files to have permissions to change their properties.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License