Quote:
Originally Posted by
prince_ban
well which one is your shell,,is it Ksh or Bash so first line will determine this parameter as
#!/bin/bash or #!/bin/ksh {depends on ur platform}
#then simply you can use any style via
echo "enter a utilty you wanna use top (1) or bdf (2) & 3 for exit"
read option
case $option in
1) /usr/bin/top ;; #please give complete path
2) /usr/bin/bdf ;; #same for here too
3) exit 0 ;;
esac
You don't need bash or korn for that, and bourne works everywhere, #!/bin/sh
Also, add a while loop to get the full functionality the OP is after.