Is it possible to do so:
I am on Windows system and telnet Unix/Linux remotely. Then I would like to download file from telnet mode and download to Windows system. Any Unix/Linux command are able 开发者_如何学Goto do so? like rcp or ftp. How to do so? Does it require any configuration on both system?
i try to write the shell script on Unix/linux side. and i telnet Unix/linux system remotely from local Windows machine and log in to Unix/linux system, run the script on Unix/linux side. some files will be transfered or download automatically to my windows system.
assume permission is not a problem
You can use x/y/zmodem to transfer file if both ends support that.
On Linux/Unix, you can use sz command to send file via zmodem.
On Windows, both Secure CRT (commercial) or Le Putty (open source) are capable of zmodem.
I think you want PSCP (command line) or WinSCP (GUI).
Usually people use ftp session to transfer files. If permissions is not a problem why don't you run ftp from your Windows computer?
You can create a windows batch script to load your file. Try something like
ftp hostname
user
password
cd /path/to/file
get myfile
quit
If you must do it through the existing connection, look at protocols such as ZMODEM and the rz
and sz
commands for them on Linux. You will need a terminal program on Windows that supports that protocol though.
For small files, I just uuencode (or gzip -c | uuencode name.gz) on the command line over the telnet session, then cut and paste to uudecode on my local windows computer (using cygwin).
You can use this:
telnet hostname 80 > filename_to_download_in
GET /path/to/file HTTP/1.0
精彩评论