There's a zillion ways to do this, but if you want to do this strictly using Perl programming, then I would suggest a combination of openSSH server for windows on windows side, and a Perl application using modules like File::Remote or Net::SSH on linux side. I haven't tried that though, but linux+linux situation works great. Also, you could install some file-sharing support (Samba, for example) on Linux - it's much easier, and no programming involved. Or you could use Opera Unite :) | [reply] |
| [reply] [d/l] |
to be more clear, i am using putty to access linux machine. Is it possible for me to copy some files present in the windows machine from which i am using putty to the linux machine??I wanted this to be done from putty itself and i dont want to copy it using winscp.
| [reply] |
You'll need to use PSCP or PSFTP
| [reply] |
I have a couple of *nix machines I transfer files to/from. I currently don't have a need to do this in a completely automated way (may in the future).
I use the FireFTP plugin to Firefox browser for file transfer and putty for command line stuff (like run the program when it gets to the server/other machine). FireFTP gets you a graphical "drag and drop" interface that is pretty smart. You can also sync directories and directories + sub-directories. And some other fancy stuff that I haven't needed yet.
Anyway, I just click on FireFTP, click on connect to server and then move stuff around and rename, etc. in a similar way to the Windows graphical interface. I find this combination of graphical file transfer window and command line putty window to be fine.
Update: I keep both windows open at the same time. Also, I can open a file on the remote *nix machine in one of my local Windows editors without "moving the file" manually. I just right click and use "Open With..." menu. So I can edit say a Word .doc file on the server without having to explicitly download it, edit it and move it back. When I "save the file", the WinWord changes get updated on the server. For something like that, this looks very much like a local file. If this is what you need to do, I highly recommend it.
| [reply] |
There is more than one way to do it. Personally I have Cygwin on the PC and from a Cygwin shell do something like:
Prompt: cd d:/temp/tt
Prompt: tar cf - mydir | ssh -l web 192.168.6.45 "(cd /tmp;tar xvf -)"
Password for web on elrond: *****
| [reply] [d/l] |