I am running a bash
script, but when I try to run functions on a remote machine, it says
bash: keyConfig: command not found
Here is my script:
keyConfig() {
sed -i.bak -r "/^$1/s/([^']+')([^']+)('.*)/\1$2\3/" $3
}
remoteExecution() {
ssh ppuser@10.101.5.91 " keyConfig $1 $2 $4 "
}
remoteExecution