|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Andrey Ivanov 2:5020/400 06 Jul 2005 14:22:29 To : All Subject : ftp upload + crontab -------------------------------------------------------------------------------- Всем привет. Hе получается по расписанию копировать файл на фтп-сервер: 00 00 * * * echo -e "binary\nput /home/someuser/backup/somefile.tgz\nquit\n" | ftp -i ftp://someuser:somepassword@some.ftp.server в ответ получаю: Connected to some.ftp.server 220 some.ftp.server FTP server (Version 6.00LS) ready. 331 Password required for someuser. 230 User someuser logged in. Remote system type is UNIX. Using binary mode to transfer files. 200 Type set to I. 500 'CWD ': command not understood. CWD command not recognized, trying XCWD. 500 'XCWD ': command not understood. ftp: The `CWD ' command (without a directory), which is required by RFC 1738 to support the empty directory in the URL pathname (`//'), conflicts with the server's conformance to RFC 959. Try the same URL without the `//' in the URL pathname. 221 Goodbye. Где ошибся, не понимаю. --- ifmail v.2.15dev5.3 * Origin: Demos online service (2:5020/400) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/6577cd46346e.html, оценка из 5, голосов 10
|