My question is that, is there any way we can start | stop | restart a service running in a remote server using scripting.
The scenario is like this.
ServerA has a service running, ServiceA. I want to restart ServiceA through a script, provided I have full access to ServerA. I am not telling about remotely login into ServerA and restart the ServiceA. When ever I run the script from the remote server the ServiceA must be restarted. ServerA and the RemoteSystem is always connected through internet and have a static IP address.
I tried all the options of ssh. But I am not able to find a way, that is useble for the abouve purpose. Restarting a service remotely thorugh a script.
I needed this script very urgently. It would be very helpfull for me if you find a solution for my problem