Originally Posted by topsy999
I would like to move a directory from a windows box to linux box. Both have user names and passwords that we use. For example I use securecrt to ssh in the linux with a username/password and I use windows remote desktop to login to the windows box.
How do I do this and where do I run this script from?
You can do it from either side, using whatever you want. Your question is kind of vague, and has many answers.
- You can either use smbclient/smbmount, to mount a shared Windows folder on your Linux system, and use a Linux script (again, many answers; bash, perl, etc....), to copy the files/folders.
- You can set Linux up to have an NFS share, and use a Windows NFS client to mount it, and use a Windows script (????) to copy the files....
- You can setup Samba on Linux, and just map a network drive from Windows to Linux, and copy the files via script (???)
- You can use SCP from either system, to copy the directory over via script (again, written in whatever you want, on either system)
Short answer: you can run the script from either Windows or Linux, and there are lots of ways to mount/map a network drive, or copy files. None are necessarily any better or worse than any other, without knowing alot more. What's your programming skill set like? What languages? How much scripting have you done? Do you know how to set up/map network services? How often is this done?
Analyze your requirements first.