Script Scenario – 1 (monitor.sh & Interactive.sh)

 

Create a script to collect following output from Linux server:MonitorScript

Interactive.sh

Hi, What is your name?
--> say some name
Hello “mike” how are you?
Let me create a directory “mike” under tmp
What service you wanted to restart?
---> say some service name
You wanted to restart “http”
Let me restart “http”
Here is the output of the http restart
Have a great day.

Leave a Comment

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>