Question: In linux, write a script that accepts a port number from the user. The script should then use that port number and use it in

In linux, write a script that accepts a port number from the user. The script should then use that port number and use it in a command to enable it on the firewall. The script should then let the user know if the command succeeded by printing a message based on the commands output (hint: the CentOS firewall configuration command prints the word success if the change worked). If the change succeeds, the script should then reload the firewall to make the change take effect.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!