‎2009 Jun 04 1:10 PM
hi all ,
If somebdy has faced this kind of situation then please can give some advice
I am transferring files from one server to other by ftp_copy F.M and it works fine .
Now what i need to do is the file which is transferred has to be given a full persmission
ie, unix command(chmod) has to be applied on the outfile file .
The problem is while i execute chmod command it gives error "FTP subcommand: Server reports error"
Any idea about this ?
*Please dnt give me any FTP fm i have enough of them
*already checked other threads so no links pls
regards
Bhanu Malik
‎2009 Jun 04 1:13 PM
in the unix command try to include the code related to this...
make the target folder a shared one with full permissions
‎2009 Jun 04 1:14 PM
thats wht i need to do the outputfile which is generated has to be with full permissions
so wht i do is
concatenate chmod g+w out_file_path
and give the above path to
ftp_command
and it gives me error
‎2009 Jun 04 1:27 PM
a bit confused
i used SXPG_COMMAND_EXECUTE fm for this
for executing a command.
Any ways what error r u getiing
‎2009 Jun 04 1:30 PM
‎2009 Jun 04 7:04 PM
Bhanu,
Try this please:
DATA: command LIKE rs37a-line.
DATA: BEGIN OF tabl OCCURS 0,
line(2000),
END OF tabl.
command = 'chmod g+w /usr/tmp/out.txt'.
CALL 'SYSTEM' ID 'COMMAND' FIELD command
ID 'TAB' FIELD tabl-*sys*.Regards
Sabu