My script from source server trying ssh onto multiple servers and run the application specific command which i can say, other than Operating system commands (like cat, chmod..), i get the error like command: not found. Below is the script.
for host in $(cat hosts_list.txt) do ssh $host chk_auto_up > "cmd_output.txt" done
Can anyone assist, what i have to include in the script to identify the command and run and write the output ot the file ?
I have error saying that command not found