Creating Command Line Menus with Shell Scripts

Описание к видео Creating Command Line Menus with Shell Scripts

More videos like this online at http://www.theurbanpenguin.com
For some users they will not know how to navigate the Linux CLI and perhaps it is best to provide them with a menu upon login. If we write this menu with a shell script then we can run it from their .bashrc login script using exec [scriptname] to ensure that leaving the script also logs them out. We can use a while loop to ensure the menu is shown after each selection and a case statement to read the users's selection. To ensure users cannot cntrl+c out of the meny we trap the signal so that it is ignored byt he script.

Комментарии

Информация по комментариям в разработке