Linux-Noob Forums

Full Version: Batch files, continued.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Is there any commands to remotely execute a batch file on another machine in the network?

like say I wanted to open like note pad or execute any number of batch files on another computer on the network, what would be the command and parameters before "open notepad" ?


Hi,

 

I belive you can just type:

 

notepad

I was just using that as an example, I just want to know how to execute commands remotely, on a networked computer
anyone??
so..... no one knows how to execute batch files on a remote computer?

well there is rsh which is remote shell but that is very insecure.. so I would look into setting up ssh hostkeys with no passpharse included in the key you generate. That way you can do this

 

ssh user@hostname date

 

it will run the date command on the remote machine with no password or passpharse prompt if you just hit enter 2 times when it prompts you for the pharse when you run ssh-keygen. a hostkey is kind of like a lock and key you put your lock on the other server and you are sending the key to try to unlock.. the passpharse is just an extra security level if someone takes your machine physically or steals your private key.


er.. im guessing that "batch" as in windows, hence whilst ssh is perfect for linux it wouldnt work on windows.

 

as for windows, well as far as I understand it.. rshsvc.exe is the only way?