alf169 Posted June 4, 2012 Share Posted June 4, 2012 Hi! Подскажите пожалуйста вариант скрипта для отправки файла по ftp из UC-7112-LX в HostName как, например, ftp -s:SendFTP HostName в windows где: SendFTP ############# admin 123456 bin put FileName quit ############# Спасибо. Link to comment
alf169 Posted June 5, 2012 Author Share Posted June 5, 2012 отвечаю себе. 1. создать: /home/.netrc ################ machine HostName login login password password ################ 2. создать: /home/ftpcmd ################ bin put FileName bye ################ 3. в скрипте: ftpsend.sh ################ #!/bin/sh HOME=/home /sbin/ftp HostName < /home/ftpcmd > /home/ftperrs 2>&1 ################ 4. выполнить: # chmod 755 ftpsend.sh # ftpsend Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now