Hi there,
so I want to create simple script to ease our work, this command is optional to choose
=============================
#! /bin/bash
#mainmenu function
mainmenu () {
echo "this is gam tools shortcut, please choose below"
echo "Enter 1 to check user info"
echo "Enter 2 to check group description"
echo "Enter 3 to exit"
read selection
processtheselection
}
menu1()
{
echo "enter your email"
read user
gam info $user;
}
menu2()
{
echo "enter the group id or email";
}
exitapp()
{
echo "Exiting from the Application"
exit;
}
processtheselection()
{
case $selection in
1) echo "you will create user, type below"
menu1
mainmenu
;;
2) echo "you will check group description"
menu2
mainmenu
;;
3) exitapp
echo "exit..."
exit
;;
esac
}
mainmenu;
=============================
when I'm choose the menu, the gam command was not work.
example when I choose menu 1 that call the command "gam info user"
this will show prompt our email to input
you will create user, type below
enter your email
xxxxx @ gmail .com (sample email)
./gamtest.sh: line 29: gam: command not found << this error that I need more information
thank you before