Find the answer to your Linux question:
Results 1 to 3 of 3
hello, I need to send a text file from the shell to a windows machine (say to an application that is using a specific port on windows). I'm unable to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2005
    Location
    INDIA
    Posts
    28

    Sending a file from the Linux Shell to a windows machine.


    hello,
    I need to send a text file from the shell to a windows machine (say to an application that is using a specific port on windows).
    I'm unable to figure out how to do this...kindly, tell me regarding it
    Thanks in advance.

  2. #2
    Linux Newbie dilbert's Avatar
    Join Date
    Sep 2006
    Location
    Yorkshire, GB
    Posts
    237
    Albeit there a many ways to connect a Linux and a Windows PC, I presume both PCs are connected to a network that runs TCP/IP as you mention the word "port".

    In this case, you will have to applications on each PC, one is running as a server on a particular port, the other one will run as a client on a particular port.

    I tried once a book like "Network programming in C" or so, I don't remember the exact title, to write simple servers and clients. Those are relatively small and simple programms. You get also similar examples in some of the O'Reilly's Perl books.

    When you got those programs running on both PCs being able to communicate with each other you can think about the application protocol.

  3. #3
    Linux Newbie framp's Avatar
    Join Date
    Jul 2006
    Location
    Stuttgart, Germany
    Posts
    240
    If you have to send the file from Linux: Open a share on the WIN box and access the share with the samba client (smbclient).

    You can also pull the file from WIN with scp/putty or ftp or use samba on linux, share the file and grab it from WIN.
    "Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." Linus Benedict Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •