Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Transfer of files thro. Linux 7.x

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am working on two seperate servers on Linux and Windows 2000 O/s.
Using a shell script, I want to transfer the files from Windows 2000 server to Linux server (Using ftp).
The script should run from Linux server.
Please guide me.
Thankz in advance
Rakesh
 
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could take a look at the FTP Client library, made available under the GNU LGPL, if you are determined to use FTP and don't mind writing a java program to do it.
Alternatively you could use the Trivial FTP (tftp) client for linux if you can find a Trivial FTP daemon (tftpd) for your win2k box but be aware that tftp is rarely used any more because it's a bit of an open door.
However, if I was you I would dispense with using ftp. It's basically insecure. See here for an explanation.
I would recommend instead that you research two subjects. Firstly, Secure FTP, and secondly, Host-based Authentication using SSH. Using the latter you can set up trusted hosts, ie, set up a relationship of trust between your Linux server and your Win2K server, and having done that you can use the sftp (Secure FTP) tool to transfer files in your scripts using a variety of command-line options very easily.
HTH.
 
George Brown
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah yes, I forgot, if you set up host-based authentication you could alternatively use the 'scp' (Secure CoPy) tool with the '-B' (batch) option.
 
Of course, I found a very beautiful couch. Definitely. And this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic