Cannot run shell script on the remote server
I`m unable to execute my shell script on the remote db server for monitoring. However i`m able to connect the remote server but the scripts are not executing remotely.
I would like to run the scripts on the remote box
You can't execute a script from a local box on a remote box. You can however put in commands to execute on a remote box from the local box OR you can copy the local script to the remote box then use the local box to tell it to run there.
Say you had a simple script and named it "showme.sh"
ssh user@remotehost ./showme.sh
It wouldn't work because showme.sh doesn't exist on the remote. You could simply copy this to the remote host and then run it.
Alternatively you could modify the script:
Moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.
|All times are GMT -5. The time now is 09:10 AM.|