0

I have a final project and I want to know how to run Linux commands of network emulator NetEm, like sudo tc qdisc add dev eth0 root netem loss 5% with JavaScript in the client.

7
  • 1
    Is the JS running on the server with node.js? Commented Oct 9, 2017 at 23:19
  • 1
    It's possible with Node, impossible without. Also, this question has nothing to do with PHP. I've removed this tag, but please only tag the appropriate languages in future. Commented Oct 9, 2017 at 23:21
  • @Webdesigner how I can know whether or not! Commented Oct 9, 2017 at 23:23
  • 1
    You asking about Javascript so I assume you have some code. Is this Server Based code or Browser based code? Commented Oct 9, 2017 at 23:25
  • I did not understand your question but I want to execute commands at the client machine connected on a local network Commented Oct 9, 2017 at 23:35

1 Answer 1

0

you can do it with another language like Java
you create an HTTP request, send your command with ajax and it will be executed with your java application.

Sign up to request clarification or add additional context in comments.

3 Comments

but my application web is realize in php how I can do it !!!
there is no problem , php or javascript or any language you can send an HTTP request.
so you must create a new app with another language , like java or .net you will make api that it execute commands

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.