Make linux bash dot sh file executable shell script
Page 1 of 1
Make linux bash dot sh file executable shell script
- Code:
#!/bash
# (c) J~Net Menu 2015
# ~~~~~~~~~~~~~~~~~~~
# cd ~/scripts
# sudo chmod +x menu.sh <<< to make executable!
#
while :
do
clear
echo "J~Net Menu 2015"
echo "1. NSlookup"
echo "2. Gnome Terminal"
echo "3. Netstat"
echo "4. Process List"
echo "9. Exit"
echo -n "Please Make A Choice"
read opt
case $opt in
1) nslookup;;
2) gnome-terminal;;
3) netstat;;
4) htop;;
9) exit;;
*) echo"$opt is an invalid Option. Press Enter To Continue..."
read enterkey;;
esac
done
- Code:
Above file example is a Menu example and you can make it executable inside the file above you can find example on how to do that!
- Code:
sudo chmod +x menu.sh
- Code:
python menu.sh
Similar topics
» Execution Time Bash On Linux Shell Script Timing
» Linux Bash Shell Script To Pick A Random Number From And To Range
» Countdown Timer Using A File On Linux Bash Script Example
» Linux BASH Script Running Commands and Functions From Bash Script and saving to varables
» Top shell Commands To Make Working With Linux Easier
» Linux Bash Shell Script To Pick A Random Number From And To Range
» Countdown Timer Using A File On Linux Bash Script Example
» Linux BASH Script Running Commands and Functions From Bash Script and saving to varables
» Top shell Commands To Make Working With Linux Easier
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum