I have two different RHEL machines, say machine A and machine B, and below is my scenario. On Machine B: I have created the below script test.sh under folder
test.sh