Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to read a file from a different sun machine through TFTPD

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I want to connect two Solaris machines and transfer files from one machine to the other using TFTPD(trivial file transfer protocol server).
I want to write this program in Java.

Please suggest me on the same.
 
Hi ,

Why don't u write simply a solaris script using
various ftp commands and transfer the files....
I can give u info. if u so desire...
 
Dear Navin,
Thanks for the help and please furnish further information on the same. I will go further ahead in defining the problem domain.There are two machines(both Solaris), I have to poll one of the machines in a specific directory to get the files and transfer to another Solaris machine in a sp. directory after every interval of 15 min.

I hope you have got an hold of the problem domain.

Please revert back asap.

Regards
Chibs
 
Hi Chibs,

The script is written on the server keeping in mind that the files are to be transferred to this server.The script goes like this:

ftp -vn <<BATCH
open (IP address of second server)
user (username) (password) [of second server]
cd (source directory path)
mget (filenames) (destination directory path)
bye
BATCH

U can execute this script using cron facility every 15 minutes....

Navin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top