0

My group and I are working on a project where we are creating a locally hosted webpage and are trying to open command terminal and run a command within the script of our jsp for one of our pages.

We haven't been able to find any script that will actually open the command terminal nevermind run a line of code in it.

Is this possible to open the command terminal through our script?

Thanks in advance!

  • no, there isn't. – awd Oct 17 '17 at 17:27
  • Are you just trying to run a process, or does it need to be in command prompt? – jrtapsell Oct 17 '17 at 18:09
  • @jrtapsell We are trying to run a .py file through our command terminal. So we click a button on our web page and it opens the command terminal and runs the command to open our .py file. Not sure this is the best way to do this but we cant find another option. – gameboys Oct 17 '17 at 18:16
  • You want the code to run on the server or the client? – jrtapsell Oct 17 '17 at 18:16

1 Answers1

0

I think you can't without an ActiveX (for Windows) or something like this (an external component). Take a look at this thread.

Christian Benseler
  • 7,907
  • 8
  • 40
  • 71