Problem Description:
The script code is as follows:
#!/bin/bash
for i in node1 node2 node3
do
echo "======== $i =========="
ssh $i "jps" | grep -v Jps
done
The error message is as follows:
Solution:
Execute the following command: cat/etc/profile & gt& gt; ~/. Bashrc
(each machine needs to execute)
the operation results are as follows:
Read More:
- Error BC: command not found when git bash runs shell script
- When executing shell script, $’r ‘: command not found appears
- Solution to the error $’\ R’: command not found when executing shell script under Linux
- Solution not found by JPS command
- [solved] – bash: rabbitmq plugins: command not found or RA bbitmqctl:command not found
- On the error report after the command of ADB shell error:device not A solution of found
- If elif writing method of shell script
- Solve the problem of shell script “syntax error near unexpected token `fi’”.
- Linux basic command execution error: the solution of command not found
- bash: /opt/ros/kinetic/ setup.bash : there is no file or directory
- The Linux terminal appears bash: setup.bash : no such file or directory, and. Bashrc file
- An undetermined call to function ‘shell’: missing ‘. Stop. Problem encountered when using shell command in makefile
- Shell script syntax error near unexpected token ‘$’Do
- The shell script exits after an error is reported
- Command not found: ADB appears on Mac
- Shell script: syntax error: bad for loop variable error resolution
- Mac command not found solution
- Solution to shell script invocation error during Xcode real machine test
- Git bash here running error: failed to fork child process
- Shell script – EQ – Ne – GT – LT – ge – le