Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. MSG=
  2.  
  3. while true
  4. do
  5. themenu
  6. getchar =
  7.  
  8. case $answer in
  9. 1) export_Config_tables;;
  10. 2) export_config_tables_file;;
  11. 3) export_Accounts_tables;;
  12. 4) export_both_tables;;
  13. 5) load_config_tables;;
  14. 6) load_config_tables_file;;
  15. x|X) break;;
  16. q|Q) break;;
  17. d|D) toggle_debug;;
  18. *) badchoice;;
  19.  
  20. esac
  21. done
  22. clear
  23.  
  24.  
  25. ------- the menu function ---------
  26. themenu () {
  27. clear
  28. echo `date `
  29. echo
  30. echo " summit Data Extract utility (SOPRA v1.1)"
  31. echo
  32. echo
  33. echo "1. Extract summit configuration data only"
  34. echo "2. Extract summit config data in flat files only"
  35. echo "3. Extract summit account data only"
  36. echo "4. Extract all data "
  37. echo "5. Load summit configuration data from Dump"
  38. echo "6. Load summit config data from flat files only"
  39. echo
  40. echo
  41. echo "x. Exit"
  42. echo
  43. echo $MSG
  44. echo
  45. echo "Select option : ";
  46. }
  47.  
  48. ------ the getchar function -----------------
  49.  
  50. getchar (){
  51. stty raw
  52. answer=`dd bs=1 count=1 2> /dev/null `
  53. stty -raw
  54. }
  55.  
  56. ------ the bad choice function -------
  57. badchoice () {
  58. MSG="Invalid menu choice"
  59. }
  60.  
  61. <System date>
  62.  
  63. summit Data Extract utility (SOPRA v1.1)
  64.  
  65.  
  66. 1. Extract summit configuration data only
  67. 2. Extract summit config data in flat files only
  68. 3. Extract summit account data only
  69. 4. Extract all data
  70. 5. Load summit configuration data from Dump
  71. 6. Load summit config data from flat files only
  72.  
  73.  
  74. x. Exit
  75.  
  76. Select option :
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement