Trying to write a bash script for BusyBox and I can't get the FTP command to accept the Username and Password. I have tried using FTP UN[email protected] but it kicks that out if I try FTP 111.222.33.44 it always opens connection and prompts for password. But for current user rather than the User of the FTP server.
Note if I try commands One at a time from $>> prompt they work fine so I know my method is fundamentally correct.
Here is my PutFTP.sh
Passwords and IPs have been changed to protect the innocent
Note if I try commands One at a time from $>> prompt they work fine so I know my method is fundamentally correct.
Here is my PutFTP.sh
Code:
#!/bin/bash
ftp 111.222.33.44 <<EOF
UN
PassW12
prompt
hash
cd /STORE
mput /mnt/screen/*
bye
EOF
Passwords and IPs have been changed to protect the innocent