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.
-
1Is the JS running on the server with node.js?Webdesigner– Webdesigner2017-10-09 23:19:39 +00:00Commented Oct 9, 2017 at 23:19
-
1It'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.Obsidian Age– Obsidian Age2017-10-09 23:21:27 +00:00Commented Oct 9, 2017 at 23:21
-
@Webdesigner how I can know whether or not!Хайят Ильхам– Хайят Ильхам2017-10-09 23:23:21 +00:00Commented Oct 9, 2017 at 23:23
-
1You asking about Javascript so I assume you have some code. Is this Server Based code or Browser based code?Webdesigner– Webdesigner2017-10-09 23:25:53 +00:00Commented 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Хайят Ильхам– Хайят Ильхам2017-10-09 23:35:57 +00:00Commented Oct 9, 2017 at 23:35
|
Show 2 more comments
1 Answer
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.
3 Comments
Хайят Ильхам
but my application web is realize in php how I can do it !!!
Abdenacer Rachedi
there is no problem , php or javascript or any language you can send an HTTP request.
Abdenacer Rachedi
so you must create a new app with another language , like java or .net you will make api that it execute commands