쉘 스크립트로 ftp 접속 및 파일전송을 하고자 합니다. 아래의 기술한 내용을 알고 싶습니다.
1. ftp 123.456.7.1 로 접속 방법 2. 서버 접속후 user 계정 및 password 입력 방법 3. pwd, cd 기능 사용 방법 4. 파일 전송 방법
답변 부탁 드립니다.
cat > autologin.txt << EOF open 123.456.7.1 user login_name login_password pwd cd your_want_directory put your_want_filename bye EOF $ ftp -n < autologin.txt
man ftp 하시면 옵션의 설명이 있습니다.
행복하세요 ^_^
man ncftpput man expect
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html Korean Ver: http://cinsk.github.io/cfaqs/
받는 것 중심이라면
man wget man curl
이런 경우..
man ftp 하시면 옵션의 설명이 있습니다.
행복하세요 ^_^
man ncftpputman expect
man ncftpput
man expect
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
Korean Ver: http://cinsk.github.io/cfaqs/
받는 것 중심이라면man wgetman curl
받는 것 중심이라면
man wget
man curl