What would this script provide?

What would this script provide?

#!/bin/bash
For host in 192.168.1.1 192.168.1.2 192.168.1.3
Do telnet $host echo "|s *. txt" echo "logout" done

What would this script provide?

#!/bin/bash
For host in 192.168.1.1 192.168.1.2 192.168.1.3
Do telnet $host echo "|s *. txt" echo "logout" done

A.
Listening of all text files in the remote host’s directory.

B.
Nothing, the given host list is not quoted.

C.
Nothing, no login information is provided.

D.
Nothing, interactive remote shell are not support in bash.



Leave a Reply 0

Your email address will not be published. Required fields are marked *