Skip to content

Instantly share code, notes, and snippets.

@ishideo
Created October 13, 2016 02:59
Show Gist options
  • Save ishideo/433c850365fce2631be1dec4cb11a9ea to your computer and use it in GitHub Desktop.
Save ishideo/433c850365fce2631be1dec4cb11a9ea to your computer and use it in GitHub Desktop.
#!/usr/bin/env gosh
(use rfc.ftp)
(define *username* "xxx")
(define *ftp-server* "ftp.xxx.xxx")
(define *client-path* "/xxx/xxx/xxx/xxx.txt")
(define *server-path* "/xxx/xxx/xxx.txt")
(define (main args)
(print "input password:")
(print
(ftp-put
(ftp-login *ftp-server* :passive #t :username *username* :password (read)) *client-path* *server-path*))
0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment