Author Topic: Recursive FTP!  (Read 665 times)

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
Recursive FTP!
« on: 25 November 2002, 18:19 »
i got in shit for quoting before, so fuck it, you'll just have to click the link. Nevertheless this is VERY cool, i have been wondering how to do this for a while...

http://www.unix.com/showthread.php?s=&threadid=9174

i haven't used this yet, so i don't know how good it is et c.

[ November 25, 2002: Message edited by: Calum ]

visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Recursive FTP!
« Reply #1 on: 25 November 2002, 18:45 »
Or he could have just done an "ncftpget -R".        Unless maybe that doesn't work with NT/IIS's ftp server but I think it does. But since they have higher access to both machines in the examples I would have opted for "scp -r" over ftp. But I digress.

[edit]
Yep, just tried it with Win2k's FTP server. "ncftpget -R <url>" and "wget -r <url>" both will recursively copy a directory from a Windows 2000 (and I assume NT) FTP server. I applaud the effort on the script though.    
[/edit]

[ November 25, 2002: Message edited by: void main ]

Someone please remove this account. Thanks...

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
Recursive FTP!
« Reply #2 on: 25 November 2002, 19:13 »
so do you mean that the script is worthless in practice?

oh well, thanks for pointing out how to do it anyway, as i say i was wondering about that.
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Recursive FTP!
« Reply #3 on: 25 November 2002, 19:51 »
quote:
Originally posted by Calum:
so do you mean that the script is worthless in practice?

oh well, thanks for pointing out how to do it anyway, as i say i was wondering about that.



Not all UNIX systems include ncftpget or wget. But you can install them on most UNIX systems, just like you can install that script. I didn't see either of those two commands mentioned so I have to assume that the author of the script didn't realize they existed. I wouldn't say the effort is wasted though because it's a good example of Korn shell programming, something people should learn.
Someone please remove this account. Thanks...