Click here to Skip to main content
15,867,568 members
Home / Discussions / Linux Programming
   

Linux Programming

 
GeneralMessage Closed Pin
19-Oct-20 9:33
Member 1496877119-Oct-20 9:33 
GeneralRe: Adding RAID mount info to fstab Pin
k505419-Oct-20 9:59
mvek505419-Oct-20 9:59 
PraiseHelp me! Pin
Member 1492738231-Aug-20 8:34
Member 1492738231-Aug-20 8:34 
AnswerRe: Help me! Pin
Dave Kreskowiak31-Aug-20 9:43
mveDave Kreskowiak31-Aug-20 9:43 
AnswerRe: Help me! Pin
Afzaal Ahmad Zeeshan31-Aug-20 17:52
professionalAfzaal Ahmad Zeeshan31-Aug-20 17:52 
QuestionDoes Crystal Report Asp.net work in Linux through Mono ? Pin
Chai WY26-Jul-20 23:00
Chai WY26-Jul-20 23:00 
AnswerRe: Does Crystal Report Asp.net work in Linux through Mono ? Pin
Afzaal Ahmad Zeeshan31-Aug-20 17:55
professionalAfzaal Ahmad Zeeshan31-Aug-20 17:55 
QuestionReading Files on network box Pin
#realJSOP7-Jul-20 0:58
mve#realJSOP7-Jul-20 0:58 
Facts:

0) I'm writing a .Net Core 3.1 command line app (using C#) to read text files on some Raspberry Pi machines on the network. This app will be able to run on either Windows or Linux.

1) The files in question are in the /etc, /proc and /sys folders.

2) I don't want to create shares of these folders.

3) I'd prefer not to have to install/configure anything on the remote boxes (if at all possible).

4) I know the user ids and passwords for the remote boxes, and am aware that I have to somehow use these credentials in order to "connect" to the remote boxes).

5) I don't want to use another language. I mean, doNet Core is supposed to be cross-platform, right?

Problem:

How do I go about reading a file on a remote linux box? I've tried a number of ways to do this, but I keep getting the following exception:

"The network name cannot be found. : '\\\\192.168.1.10\\sys\\class\\thermal\\thermal_zone0\\temp'"

(BTW, when running in Windows, the exception is presented with backslashes. I'm actually using forward slashes.)
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

AnswerRe: Reading Files on network box Pin
k50547-Jul-20 4:28
mvek50547-Jul-20 4:28 
GeneralRe: Reading Files on network box Pin
#realJSOP7-Jul-20 4:47
mve#realJSOP7-Jul-20 4:47 
GeneralRe: Reading Files on network box Pin
Richard Deeming7-Jul-20 5:10
mveRichard Deeming7-Jul-20 5:10 
GeneralRe: Reading Files on network box Pin
markkuk7-Jul-20 21:47
markkuk7-Jul-20 21:47 
GeneralRe: Reading Files on network box Pin
#realJSOP8-Jul-20 8:45
mve#realJSOP8-Jul-20 8:45 
GeneralRe: Reading Files on network box Pin
pkfox31-Mar-21 23:47
professionalpkfox31-Mar-21 23:47 
AnswerRe: Reading Files on network box Pin
Gerry Schmitz7-Jul-20 21:04
mveGerry Schmitz7-Jul-20 21:04 
GeneralRe: Reading Files on network box Pin
markkuk7-Jul-20 21:32
markkuk7-Jul-20 21:32 
GeneralRe: Reading Files on network box Pin
kalberts7-Jul-20 22:02
kalberts7-Jul-20 22:02 
GeneralRe: Reading Files on network box Pin
markkuk7-Jul-20 22:23
markkuk7-Jul-20 22:23 
GeneralRe: Reading Files on network box Pin
Gerry Schmitz8-Jul-20 6:03
mveGerry Schmitz8-Jul-20 6:03 
AnswerRe: Reading Files on network box Pin
Josh Gray210-Jul-20 4:37
Josh Gray210-Jul-20 4:37 
GeneralRe: Reading Files on network box Pin
#realJSOP10-Jul-20 5:07
mve#realJSOP10-Jul-20 5:07 
AnswerRe: Reading Files on network box Pin
Member 1330167920-Dec-20 23:33
Member 1330167920-Dec-20 23:33 
GeneralRe: Reading Files on network box Pin
#realJSOP21-Dec-20 0:35
mve#realJSOP21-Dec-20 0:35 
QuestionGlade C++ Maximizing the window Pin
Member 1485117218-Jun-20 5:49
Member 1485117218-Jun-20 5:49 
Questionglade display an image Pin
Member 148511722-Jun-20 5:15
Member 148511722-Jun-20 5:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.