windows-share

Using Windows SMB shares from Kubernetes deployment app

大城市里の小女人 提交于 2019-12-23 10:28:16
问题 We are migrating legacy java and .net applications from on-premises VMs to an on-premises Kubernetes cluster. Many of these applications make use of windows file shares to transfer files from and to other existing systems. Deploying to Kubernetes has less priority than re-engineering all the solutions to avoid using samba shares, so if we want to migrate we will have to find a way of keeping many things as they are. We have setup a 3-node cluster on 3 centos 7 machines using Kubeadm and Canal

Using Windows SMB shares from Kubernetes deployment app

陌路散爱 提交于 2019-12-23 10:27:46
问题 We are migrating legacy java and .net applications from on-premises VMs to an on-premises Kubernetes cluster. Many of these applications make use of windows file shares to transfer files from and to other existing systems. Deploying to Kubernetes has less priority than re-engineering all the solutions to avoid using samba shares, so if we want to migrate we will have to find a way of keeping many things as they are. We have setup a 3-node cluster on 3 centos 7 machines using Kubeadm and Canal

Trying to get a Windows Service to run an executable on a shared drive

流过昼夜 提交于 2019-12-20 02:16:20
问题 I have c# that will run in a windows service. I'm trying to use the Process and ProcessStartInfo classes to run an executable. If the executable is on the local drive, no problem. However, I need to run an executable on a shared drive. I've tried using the UNC notation (//machine_name/share_name/directory/runme.exe), but the process seems to hang. The service and shared drive are on Windows XP. Has anyone tackled this issue before? 回答1: The account your service is running as likely does not

Accessing a shared file?

守給你的承諾、 提交于 2019-12-11 10:16:39
问题 I'm trying to read a file body from a Windows shared folder by it's UNC path, and getting this exception: The process cannot access the file '\\<someIP>\logs\LogFiles\W3SVC1\u_ex141017.log' because it is being used by another process. However, this file isn't really locked by any process. I can view it from my PC using a text editor, etc. I'm using this code to read the file: var logFile = File.ReadAllText(logPath); and var logFile = (string)null; using (var fileStream = new FileStream

Accessing shared folder over a network in windows service

六月ゝ 毕业季﹏ 提交于 2019-12-02 04:17:25
问题 I have a windows service that needs to access the files (sometime modification also) from a network (shared folder). I get the file name from an XML like, <add key ="FolderName" value="\\192.168.0.1\Source" /> I made a log file which always shows that the path is not found. Also i need to know how to debug a windows service using visual studio? Thanks in advance. 回答1: Most likely, the problem is in permissions to the shared folder. Your service runs under some user account and this account

Accessing shared folder over a network in windows service

删除回忆录丶 提交于 2019-12-01 23:45:24
I have a windows service that needs to access the files (sometime modification also) from a network (shared folder). I get the file name from an XML like, <add key ="FolderName" value="\\192.168.0.1\Source" /> I made a log file which always shows that the path is not found. Also i need to know how to debug a windows service using visual studio? Thanks in advance. Most likely, the problem is in permissions to the shared folder. Your service runs under some user account and this account needs to have access granted to that folder. In case it's the 'Local Service' account you won't be able to

Accessing a Windows Share using PHP

浪尽此生 提交于 2019-11-28 12:35:51
I need to access an Excel file on a Windows Share using PHP but seem to be running into what looks like an authentication issue. I'm using PHP-ExcelReader to open and read the file. Works fine on my local machine but the server I'm putting it on doesn't have the rights to access this share, and so its telling me that the path is unreadable! I'm not even sure the path I have for accessing this share is correct: $file_to_include = "\\\\10.9.8.7\depts$\ExcelFile.xls"; But it works on my machine, as I said so I'm happy with that. Is there any way I can add my credentials in here somewhere? Cem

JCIFS: file retrieval is too slow to be usable

亡梦爱人 提交于 2019-11-27 20:15:05
I was just testing JCIFS for accessing Windows shares. It is very slow to the point of being completely unusable. import jcifs.smb.*; class First { public static void main(String[] args) throws Exception { try { //jcifs.Config.setProperty( "jcifs.netbios.wins", "192.168.1.220" ); NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("domain.com", "Administrator", "password"); SmbFile f = new SmbFile("smb://10.17.15.12/Share/xml/file.xml", auth); SmbFileInputStream in = new SmbFileInputStream(f); byte[] b = new byte[8192]; int n; while(( n = in.read( b )) > 0 ) { System.out.write( b,

Accessing a Windows Share using PHP

大兔子大兔子 提交于 2019-11-27 07:04:00
问题 I need to access an Excel file on a Windows Share using PHP but seem to be running into what looks like an authentication issue. I'm using PHP-ExcelReader to open and read the file. Works fine on my local machine but the server I'm putting it on doesn't have the rights to access this share, and so its telling me that the path is unreadable! I'm not even sure the path I have for accessing this share is correct: $file_to_include = "\\\\10.9.8.7\depts$\ExcelFile.xls"; But it works on my machine,

JCIFS: file retrieval is too slow to be usable

老子叫甜甜 提交于 2019-11-26 20:15:03
问题 I was just testing JCIFS for accessing Windows shares. It is very slow to the point of being completely unusable. import jcifs.smb.*; class First { public static void main(String[] args) throws Exception { try { //jcifs.Config.setProperty( "jcifs.netbios.wins", "192.168.1.220" ); NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("domain.com", "Administrator", "password"); SmbFile f = new SmbFile("smb://10.17.15.12/Share/xml/file.xml", auth); SmbFileInputStream in = new