Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi All,

We have a requirement in which some files are generated in Linux server at some path.
We need create a tool in .net c# which extract files from that Linux server.Can we solve this problem by using socket programming in C#.

Your help is very appreciated.

What I have tried:

I have try this by using asp.net core but we can not use asp.net core framework.So We have to work in other way.
Posted
Updated 17-Sep-18 2:48am

You can FTP to / from a Linux server.

You just need an IP address and directory info (and "login" capabilities, of course).
 
Share this answer
 
Comments
Member 13982476 27-Sep-18 15:38pm    
Thanks for your help Gerry. Could you please help me how to configure FTP in Linux and use in the .net/c#.
Use Mono[^] on Linux Server! It supports (includes) FileSystemWatcher for all platforms ;)

Quote:
What are the issues with FileSystemWatcher?

The Mono implementation of FileSystemWatcher has a number of backends, the most optimal one, the one with fewer dependencies is the inotify-backend (available in Mono 1.1.17 and newer versions).

With this backend the kernel provides Mono with updates on any changes to files on the file system but it requires an inotify-enabled kernel, which only newer Linux distributions ship.

In older Linux systems, you must have installed FAM or Gamin (it will work with either one). You might need the -devel packets installed.

For the *BSD family, there’s a Kqueue based implementation that will be used when detected at runtime.

If none of the above work, Mono falls back to polling the directories for changes, which far from optimal.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900