473,378 Members | 1,360 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Connecting from Windows to Linux server with C#

Is there a way to connect to the Linux filesystem with C# without using Samba?

I need it to get a configuration file from the server, edit it and place it
back. And after that I need to restart a service, however this is not
difficult since I already have the API's to do this.

Unfortunately I can't find anything about this subject, so I am afraid that
it can't be done...

TIA,
Arjan.
Feb 7 '06 #1
14 9923

"Arjan" <Ar***@discussions.microsoft.com> wrote in message
news:62**********************************@microsof t.com...
| Is there a way to connect to the Linux filesystem with C# without using
Samba?
|
| I need it to get a configuration file from the server, edit it and place
it
| back. And after that I need to restart a service, however this is not
| difficult since I already have the API's to do this.
|
| Unfortunately I can't find anything about this subject, so I am afraid
that
| it can't be done...
|
| TIA,
| Arjan.

You have to map a drive to connect to the exported SMB share, or use a UNC
path to copy the file back and forth.

Willy.
Feb 7 '06 #2
Hi,

"Arjan" <Ar***@discussions.microsoft.com> wrote in message
news:62**********************************@microsof t.com...
Is there a way to connect to the Linux filesystem with C# without using
Samba?

You need Samba in the linux server, that's the only way windows can access
it as a "regular" network drive.

The other way would be using FTP

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Feb 7 '06 #3

Thanks for your quick response, however I mentioned that I don't want to use
Samba (SMB).
"Willy Denoyette [MVP]" wrote:

"Arjan" <Ar***@discussions.microsoft.com> wrote in message
news:62**********************************@microsof t.com...
| Is there a way to connect to the Linux filesystem with C# without using
Samba?
|
| I need it to get a configuration file from the server, edit it and place
it
| back. And after that I need to restart a service, however this is not
| difficult since I already have the API's to do this.
|
| Unfortunately I can't find anything about this subject, so I am afraid
that
| it can't be done...
|
| TIA,
| Arjan.

You have to map a drive to connect to the exported SMB share, or use a UNC
path to copy the file back and forth.

Willy.

Feb 7 '06 #4
Well, another other option is to use NFS on linux and "Windows Services for
UNIX" on Windows.
http://www.microsoft.com/windowsserv...s/default.mspx
but you need something, right? Or do you prefer FTP?

Willy.
"Arjan" <Ar***@discussions.microsoft.com> wrote in message
news:7E**********************************@microsof t.com...
|
| Thanks for your quick response, however I mentioned that I don't want to
use
| Samba (SMB).
|
|
| "Willy Denoyette [MVP]" wrote:
|
| >
| > "Arjan" <Ar***@discussions.microsoft.com> wrote in message
| > news:62**********************************@microsof t.com...
| > | Is there a way to connect to the Linux filesystem with C# without
using
| > Samba?
| > |
| > | I need it to get a configuration file from the server, edit it and
place
| > it
| > | back. And after that I need to restart a service, however this is not
| > | difficult since I already have the API's to do this.
| > |
| > | Unfortunately I can't find anything about this subject, so I am afraid
| > that
| > | it can't be done...
| > |
| > | TIA,
| > | Arjan.
| >
| > You have to map a drive to connect to the exported SMB share, or use a
UNC
| > path to copy the file back and forth.
| >
| > Willy.
| >
| >
| >
Feb 7 '06 #5
There is no way that I can use something like NFS?

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

"Arjan" <Ar***@discussions.microsoft.com> wrote in message
news:62**********************************@microsof t.com...
Is there a way to connect to the Linux filesystem with C# without using
Samba?

You need Samba in the linux server, that's the only way windows can access
it as a "regular" network drive.

The other way would be using FTP

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Feb 7 '06 #6
NFS is good. It is just that I don't really like Samba. And I rather prefer
to use NFS.

"Willy Denoyette [MVP]" wrote:
Well, another other option is to use NFS on linux and "Windows Services for
UNIX" on Windows.
http://www.microsoft.com/windowsserv...s/default.mspx
but you need something, right? Or do you prefer FTP?

Willy.
"Arjan" <Ar***@discussions.microsoft.com> wrote in message
news:7E**********************************@microsof t.com...
|
| Thanks for your quick response, however I mentioned that I don't want to
use
| Samba (SMB).
|
|
| "Willy Denoyette [MVP]" wrote:
|
| >
| > "Arjan" <Ar***@discussions.microsoft.com> wrote in message
| > news:62**********************************@microsof t.com...
| > | Is there a way to connect to the Linux filesystem with C# without
using
| > Samba?
| > |
| > | I need it to get a configuration file from the server, edit it and
place
| > it
| > | back. And after that I need to restart a service, however this is not
| > | difficult since I already have the API's to do this.
| > |
| > | Unfortunately I can't find anything about this subject, so I am afraid
| > that
| > | it can't be done...
| > |
| > | TIA,
| > | Arjan.
| >
| > You have to map a drive to connect to the exported SMB share, or use a
UNC
| > path to copy the file back and forth.
| >
| > Willy.
| >
| >
| >

Feb 7 '06 #7
you have to find if there is a NFS driver for windows, I bet there are, not
sure if they are free though.

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Arjan" <Ar***@discussions.microsoft.com> wrote in message
news:A0**********************************@microsof t.com...
There is no way that I can use something like NFS?

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

"Arjan" <Ar***@discussions.microsoft.com> wrote in message
news:62**********************************@microsof t.com...
> Is there a way to connect to the Linux filesystem with C# without using
> Samba?

You need Samba in the linux server, that's the only way windows can
access
it as a "regular" network drive.

The other way would be using FTP

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Feb 7 '06 #8
"Windows Services for UNIX" has both NFS server and client, and is freely
downloadable (need to register).

Willy.
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:uY**************@tk2msftngp13.phx.gbl...
| you have to find if there is a NFS driver for windows, I bet there are,
not
| sure if they are free though.
|
|
|
| --
| Ignacio Machin,
| ignacio.machin AT dot.state.fl.us
| Florida Department Of Transportation
|
|
|
| "Arjan" <Ar***@discussions.microsoft.com> wrote in message
| news:A0**********************************@microsof t.com...
| > There is no way that I can use something like NFS?
| >
| > "Ignacio Machin ( .NET/ C# MVP )" wrote:
| >
| >> Hi,
| >>
| >> "Arjan" <Ar***@discussions.microsoft.com> wrote in message
| >> news:62**********************************@microsof t.com...
| >> > Is there a way to connect to the Linux filesystem with C# without
using
| >> > Samba?
| >>
| >>
| >> You need Samba in the linux server, that's the only way windows can
| >> access
| >> it as a "regular" network drive.
| >>
| >> The other way would be using FTP
| >>
| >>
| >>
| >> --
| >> Ignacio Machin,
| >> ignacio.machin AT dot.state.fl.us
| >> Florida Department Of Transportation
| >>
| >>
| >>
|
|
Feb 7 '06 #9
Just downloaded it. Does it have components that I can use in my application?
Or do I need to completely install it?

"Willy Denoyette [MVP]" wrote:
"Windows Services for UNIX" has both NFS server and client, and is freely
downloadable (need to register).

Willy.
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:uY**************@tk2msftngp13.phx.gbl...
| you have to find if there is a NFS driver for windows, I bet there are,
not
| sure if they are free though.
|
|
|
| --
| Ignacio Machin,
| ignacio.machin AT dot.state.fl.us
| Florida Department Of Transportation
|
|
|
| "Arjan" <Ar***@discussions.microsoft.com> wrote in message
| news:A0**********************************@microsof t.com...
| > There is no way that I can use something like NFS?
| >
| > "Ignacio Machin ( .NET/ C# MVP )" wrote:
| >
| >> Hi,
| >>
| >> "Arjan" <Ar***@discussions.microsoft.com> wrote in message
| >> news:62**********************************@microsof t.com...
| >> > Is there a way to connect to the Linux filesystem with C# without
using
| >> > Samba?
| >>
| >>
| >> You need Samba in the linux server, that's the only way windows can
| >> access
| >> it as a "regular" network drive.
| >>
| >> The other way would be using FTP
| >>
| >>
| >>
| >> --
| >> Ignacio Machin,
| >> ignacio.machin AT dot.state.fl.us
| >> Florida Department Of Transportation
| >>
| >>
| >>
|
|

Feb 7 '06 #10
Hi,

"Arjan" <Ar***@discussions.microsoft.com> wrote in message
news:5E**********************************@microsof t.com...
Just downloaded it. Does it have components that I can use in my
application?
Or do I need to completely install it?


You have to check the doc , I have never used it so I dont know if you can
call an API to mount a remote NFS drive.
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Feb 8 '06 #11
I will have some time tonight. So I will give it a shot. Maybe a regular
client-server system is possible too...

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

"Arjan" <Ar***@discussions.microsoft.com> wrote in message
news:5E**********************************@microsof t.com...
Just downloaded it. Does it have components that I can use in my
application?
Or do I need to completely install it?


You have to check the doc , I have never used it so I dont know if you can
call an API to mount a remote NFS drive.
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Feb 8 '06 #12
You can select some individual components, but why would you, the package is
so small and you might need the other stuff too.
Not sure what you mean with "regular client-server system" though.

Willy.

"Arjan" <Ar***@discussions.microsoft.com> wrote in message
news:98**********************************@microsof t.com...
|I will have some time tonight. So I will give it a shot. Maybe a regular
| client-server system is possible too...
|
| "Ignacio Machin ( .NET/ C# MVP )" wrote:
|
| > Hi,
| >
| > "Arjan" <Ar***@discussions.microsoft.com> wrote in message
| > news:5E**********************************@microsof t.com...
| > > Just downloaded it. Does it have components that I can use in my
| > > application?
| > > Or do I need to completely install it?
| >
| > You have to check the doc , I have never used it so I dont know if you
can
| > call an API to mount a remote NFS drive.
| >
| >
| > --
| > Ignacio Machin,
| > ignacio.machin AT dot.state.fl.us
| > Florida Department Of Transportation
| >
| >
| >
Feb 8 '06 #13
Hi,

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:Ol**************@TK2MSFTNGP11.phx.gbl...
You can select some individual components, but why would you, the package
is
so small and you might need the other stuff too.
Not sure what you mean with "regular client-server system" though.


I think he meant that he want to mount/unmount it from code.

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Feb 8 '06 #14
Exactly, what I am trying to do is making an application that can control
MySQL Server on linux and windows. So I need to get access to the
config-file. So I need something to get that done. And I don't really want to
work with shares. So if I can trigger a server app from my client app, I
should be able to edit the config-file. My first idea was to use something
like NFS, but a client-server app might be a better way to do this. Probably
also out of security reasons. The only disadvantage is that you also need to
install a server app.

Arjan.

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:Ol**************@TK2MSFTNGP11.phx.gbl...
You can select some individual components, but why would you, the package
is
so small and you might need the other stuff too.
Not sure what you mean with "regular client-server system" though.


I think he meant that he want to mount/unmount it from code.

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Feb 8 '06 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Google Mike | last post by:
After a lot of thought and research, and playing with FreeTDS and InlineTDS, as well as various ODBC connections, I have determined that the fastest and cheapest way to get up and going with PHP on...
1
by: Wayne Happ | last post by:
I'm a new Oracle user. I've installed Oracle 9i on a Linux RedHat machine V9.0 and it's running. I took a Windows XP machine and installed the Oracle client on it along with PL/SQL developer...
4
by: Dan | last post by:
Hi, I'm planning to develop a small intranet to provide our organization with documents online. I've decided to do this using jsp/servlets using a tomcat server. For an operating system, I...
3
by: kamilla | last post by:
I have a mysql 3.5 server installed on a suse linux 8.1, with address 10.0.0.100. Now I want to access that db from a W2K pc, address 10.0.0.200. I am able to ping 10.0.0.100, but I cannot connect...
12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
3
by: Mike | last post by:
I have transferred the data from Access to MySQL using MySQL's tool. The transfer worked great and saved me a lot of time (thanks MySQL). Now I'm trying to get the Access database, or a new access...
10
by: mairhtin o'feannag | last post by:
Hello, I'm having problems connecting to my new v9 db box. The pertinent information is below: DB2_db2inst1 60000/tcp DB2_db2inst1_1 60001/tcp DB2_db2inst1_2 60002/tcp DB2_db2inst1_END...
1
by: malooga | last post by:
Hello, I'm having a problem connecting to DB2 on a remote iSeries host from a Linux server, both of which reside on my company's internal network. I'm using the IBM Linux Client V9.1. When I try...
2
by: orandov | last post by:
Hi, I am having a problem connecting my .net applications from the application server to the database server. When I run the application from my windows xp (sp2) box it works fine. When I try to...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.