In the following examples, the local host is listed in the /etc/hosts.equiv file
at the remote host.
1. To copy a local file to a remote host, enter:
rcp localfile host2:/home/eng/jane
The file localfile from the local host is copied to the remote host host2.
2. To copy a remote file from one remote host to another remote host, enter:
The file /home/eng/jane/newplan is copied from remote host host1 to remote
host host2.
3. To send the directory subtree from the local host to a remote host and
preserve the modification times and modes, enter:
rcp -p -r report jane@host2:report
The directory subtree report is copied from the local host to the home作者: todaynet 时间: 2008-02-03 03:25
可以写到文件里作者: very_99 时间: 2008-02-05 10:58
用expect作者: walkerxk 时间: 2008-02-13 09:33
expect,echo,或者是做公钥,推荐后面那个,如果用前面两个,最好用shc加密一下。作者: ruoyisiyu 时间: 2008-02-13 15:45
spawn