connect and read/execute commands on Linux machine through Windows application

Posted on 2013-10-23
Last Modified: 2013-10-28
Hello experts

How I can able to connect to a Linux machine and read a file contents or data packets and also executing a command from a VC++ application on windows.
Question by:HarishMinu
  • 3
  • 2
LVL 32

Expert Comment

ID: 39593947
you would need to provide a service at the windows system which retrieves the information at the local machine on request from the Linux and sends it back. normally, you would do that by socket communication. the service would run in the background and it requires additional efforts to execute a function of running desktop application. it could be easier to add a thread to the vc application which would communicate with the Linux.


Author Comment

ID: 39597173
Its looks complicated, in simple I want to connect to a Linux machine and read a file contents and display in GUI application which is on windows machine
Thanks in advance.
LVL 32

Expert Comment

ID: 39597611
you could add a samba server at the linux and then map a drive from windows which then could accessed locally like any other drive.


Author Comment

ID: 39604933
Is there any other solution to read the files on Linux, because installation of samba server cannot be possible.
LVL 32

Accepted Solution

sarabande earned 500 total points
ID: 39605231
there are thousands of file servers available for any linux. you also could install a ftp server, see or check whether there is already an installation.

if you can't install software on the linux, it is more difficult. you could use a nas storage that was used both by linux and windows. or you program your own file server what is not much difficult for a lan.


Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now