Copying a file from path P1 to path P2 on a *remote* machine...

V

varlagas

Let there be a file F in path P1 in remote machine R. I have userid and

password for that remote machine and can do FTP, etc. just fine.

Now, let's say that I wish to copy file to a different path (say) P2,
in the same remote machine R, for backup purposes. Surely, I cannot use

Java file I/O to that purpose? How could I do this through Java?

(My Java code is running on an AS/400...)

Thx!!!
 
O

Oliver Wong

Let there be a file F in path P1 in remote machine R. I have userid and

password for that remote machine and can do FTP, etc. just fine.

Now, let's say that I wish to copy file to a different path (say) P2,
in the same remote machine R, for backup purposes. Surely, I cannot use

Java file I/O to that purpose? How could I do this through Java?

(My Java code is running on an AS/400...)

Thx!!!

What services does R expose? You mentioned FTP, and etc. The contents of
"etc." are important. This might be easy to do with ssh, for example. It's
doable with FTP (assuming adequate permissions), but inefficient.

- Oliver
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top