alright here goes ...


Qt Code:
  1. #!/bin/sh
  2.  
  3. USAGE="usage: $0 {start|stop}";
  4.  
  5. usage() {
  6. echo $USAGE >&2
  7. }
  8.  
  9. ss_start() {
  10. cd /usr/local/qtsoft/bin
  11. ./my_qt_app &
  12.  
  13. }
  14.  
  15. ss_stop() {
  16. killall -9 my_qt_app
  17.  
  18. }
  19.  
  20. case $1 in
  21. start) ss_start ;;
  22. stop) ss_stop ;;
  23. *) usage
  24. exit 1
  25. ;;
  26. esac
To copy to clipboard, switch view to plain text mode