Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here's the situation: I have one server and two terminals. I want to run a semi-automatic backup that will be run on one of the terminals, which will, obviously, back up some files, etc. However, one of the commands which the back up should do is run a shell command that should be ran at the server (sql server command). How can I run a command on the server from the terminal?

Right now I'm using batchrun for the backup, running it from a vnc on the server.

EDIT: They're all Windows machines.

share|improve this question
up vote 3 down vote accepted

Use SysInternals PSExec. It allows you to remotely execute files on any Windows system you have administrator credentials for. You could add a psexec command to the batch file (or whatever you're using) on the terminal which will then run the desired commands on the server.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .