Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FTP related problem :File transfer program

Former Member
0 Likes
772

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

5 REPLIES 5
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
729

in the unix command try to include the code related to this...

make the target folder a shared one with full permissions

Read only

0 Likes
729

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

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
729

a bit confused

i used SXPG_COMMAND_EXECUTE fm for this

for executing a command.

Any ways what error r u getiing

Read only

0 Likes
729

FTP subcommand: Server reports error"

lemme try your F.M

Read only

Former Member
0 Likes
729

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