Click here to Skip to main content
14,122,160 members
Rate this:
 
Please Sign up or sign in to vote.
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
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

You can FTP to / from a Linux server.

You just need an IP address and directory info (and "login" capabilities, of course).
   
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#.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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.
   

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.190518.1 | Last Updated 17 Sep 2018
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100