Operating System - Linux
1754973 Members
3456 Online
108828 Solutions
New Discussion юеВ

copy from linux to wondows

 
Dilip Kumar C M
Occasional Advisor

copy from linux to wondows

Hi All,

winexe will execute command in a remote windows machine.

but my requirement is i need to copy file from linux to remote windows machines and then i need to execute those things in that machine.
winexe will execute files and exe which is there in windows machine but i need to copy those things from 1 linux to 100 windows machine at a time, this is my job.


Anybody has any solution to this problem...???
thanking you.....
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: copy from linux to wondows

Shalom,

Windows has a sharing tool based on samba.

You can use the windows gui to set shares and then cifsmount or smbmount to access the shares.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dilip Kumar C M
Occasional Advisor

Re: copy from linux to wondows

i cannot use samba because size is big and i want to do remotedeployment, whatever the changes is there i need to do it in linux only not on windows.....

it is something like copying from linux to windows and to execute the samething in windows......
Steven E. Protter
Exalted Contributor

Re: copy from linux to wondows

Shalom,

Samba's file size limits are pretty big.

How big is the file.

You can us Unix services for Windows and set up a NFS server.

You can use openssh for windows and use secure shell(openssh) to copy the files.

File size limitations still apply.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Matti_Kurkela
Honored Contributor

Re: copy from linux to wondows

If you're doing remote deployment, I assume you have Administrator-level access to those windows machines. Right?

In that case, use a smbclient or smbmount to connect to the hidden admin shares, e.g. \\HOSTNAME\C$. Then just copy the file(s) into the directory you want.

If you want to script it, smbmount is probably easier. Something like:

for HOST in win01 win02 win03 ...
do
smbmount //$HOST/C\$ /mnt -o user=xxx,password=yyy

# copy file to C:\windows\temp
cp /winstuff/bigfile.exe /mnt/windows/temp

smbumount /mnt
winexe -U identity //$HOST "command"
done

MK
MK
D. Jackson_1
Honored Contributor

Re: copy from linux to wondows

You might also explore using scp with authentication keys.
You will need an ssh service running on windozzze and add the public key to the authorized_keys file.
Search google there should be plenty of explanations there.

DCJ