Câu trả lời hoàn chỉnh hơn là không thể với ftp (ít nhất là chương trình ftp được cài đặt trên centos 6).
Vì bạn muốn có quy trình không được tham dự, câu trả lời của "pts" sẽ hoạt động tốt.
Làm upload tự động với curl thay vì ftp:
curl -u user:password -T file ftp://server/dir/file
% 40 không xuất hiện để làm việc.
[~]# ftp domain.com
ftp: connect: Connection refused
ftp> quit
[~]# ftp some_user%[email protected]
ftp: some_user%[email protected]: Name or service not known
ftp> quit
Tất cả những gì tôi có là mở chương trình FTP và sử dụng miền và nhập người dùng khi được hỏi. Thông thường, mật khẩu là bắt buộc, vì vậy bản chất tương tác có thể không có vấn đề.
[~]# ftp domain.com
Connected to domain.com (173.254.13.235).
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 2 of 1000 allowed.
220-Local time is now 02:47. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
Name (domain.com:user): [email protected]
331 User [email protected] OK. Password required
Password:
230 OK. Current restricted directory is/
Remote system type is UNIX.
Using binary mode to transfer files.
Tôi đang thử cả hai. Cảm ơn các bạn!! – bentford
Điều này có vẻ như nó thuộc về http://superuser.com. –