Hello guys today I fell on a very difficult task and I need some help. I have a Windows Server 2008 R2 and a FreeBSD 9.3 server. In FreeBSD there are some sh
files that open and close the server's ports. When a port opens/closes I want the sh
file to edit an XML located in Windows Server and I have no idea how to do that. I appreciate any tips.
Asked
Active
Viewed 96 times
0

Dev
- 677
- 1
- 8
- 19
-
I don't exactly understand but if you could mount the windows server on the freebsd you could then edit the files every time the scripts are run. – nbari Nov 05 '16 at 14:37
-
The 2 servers are not in the same machine so I don't think I can do that. – Dev Nov 05 '16 at 14:49
-
you will need to find a way to expose the XML, maybe an FTP server so that when the ``sh`` scripts are run they could fetch the files, edit and later upload back again. – nbari Nov 05 '16 at 18:05
1 Answers
1
I'd use SSH for that purpose. You can config key authorization and use scp
to store file to freeBSD edit it and load back XML files. More on using scp
.