1

I need to create a webservice that will collect some information from a remote server, run some command line apps, and then append the output to a file. It would all be very easy, but I have a few hangups about the implementation.

I'm collecting information via command line apps (nslookup, tracert, etc.). My gut reaction is to say that it is bad practice to call a shell app from a webservice, but I'm not certain.

What are the implications of doing this? Is it bad practice? Only in certain situations? Or am I completely wrong and it is just fine?

More information if you need it:

We'll be running this on Windows Server 2012, using IIS 8, and it will be coded in C# as a WCF service.

This is all inside a corporate network, and we own the servers, so it is certainly possible to perform the tasks this way.

ChrisG
  • 1,373
  • 12
  • 22

0 Answers0