Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- E_BADARGS=65
- if [ -z "$1" ]
- then
- echo "Usage: `basename $0` extract_dir_name"
- exit $E_BADARGS
- fi
- Server="ftp://ftp.xxx.com/students" # BOH FTP server
- Username='xxx' # User id on FTP server
- Password=xxx # Password
- Filename=$1 # File being sent
- ftp -n $Server <<End-Of-Session
- user $Username $Password
- put $Filename `basename $Filename`
- bye
- End-Of-Session
- # -n option to "ftp" disables auto-logon.
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement