Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/ksh
- HOST='my_ip'
- USER='userid'
- PASSWD='password'
- FILE='file.txt'
- DIREC='/eir_log'
- ftp -in $HOST << EOMYF
- user $USER $PASSWD
- binary
- mkdir $DIREC
- cd $DIREC
- pwd
- quit
- EOMYF
- #!/usr/bin/expect
- set timeout 120
- spawn ftp 192.168.0.210
- expect "Name"
- send "rootr"
- expect "Password:"
- send "passr"
- expect "ftp> "
- send "byer"
Add Comment
Please, Sign In to add comment