0

I'd like to run a shell command on the server side when a client triggers an event. Is it possible with javascript?

3
  • 3
    You need to connect to the server, so javascript alone cannot do it. Commented Sep 6, 2013 at 12:03
  • maybe nodejs? nodejs is JS :) Commented Sep 6, 2013 at 12:05
  • 2
    client $.ajax -> server, server -> triggers shell command. Commented Sep 6, 2013 at 12:06

1 Answer 1

2

I don't believe this is possible with client-side JavaScript.

Althought it's not really your question, you could do it if you were using NodeJS server-side (http://nodejs.org/api/all.html#all_child_process_exec_command_options_callback).

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.