Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.