Discussion Locked

excuting a command remotely

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Is there a way to execute a command from a different machine on the network than the machine that you want to actually execute the command on? There is a particular command that i execute on our web server from the command line on the web server itself, but i want to be able to execute this command from my workstation so that i don't have to actually go to the webserver to do it.

7 replies

by mike mullins

If it is an nt server you can use the AT command
AT \\COMPUTERNAME TIME /interactive "command"

Just look at the clock and schedule it a minute in the future and run the command. The file that you want to run must be in a directory listed in the PATH= on the system you're running it on.

or check your resource kit for Remote Command, you can install remote command on the web server and run it that way.

Good Luck
0bytes

by joseph moore

REMOTE.EXE is a Resource Kit tool that will run a command-line process remotely. That is what you want.

by gperrie

You could also try rcmd.exe I can't remember if its a standard file or from the resource kit.

It gives you a DOS box that executes on the target machine

Gavin

This discussion is closed to new replies.