Question: using linux answer the following questions 1) John is trying to cut on his British diet for the week. On Monday, at tea time, the

using linux answer the following questions

1) John is trying to cut on his British diet for the week. On Monday, at tea time, the computer should show tell him "you're allowed 5 cups of tea". The next day, same time, he would be allowed 4 cups; then 3 cups the next day, etc. When he can't drink tea, the computer shows the message "No tea today". Write a script diet.sh that schedules all these messages to be displayed.

2)Write a script When the user closes the script (using Ctrl+C), the script closes but the user will see the message "I am still in your Shell" in the shell 5, 10, and 15 minutes later.

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!