home *** CD-ROM | disk | FTP | other *** search
/ Amiga GigaPD 3 / Amiga_GigaPD_v3_3of3.iso / rush / scripts / find_rush < prev    next >
AmigaDOS Script File  |  1993-06-25  |  587b  |  29 lines

  1. .key cmd
  2. .bra {
  3. .ket }
  4. ; $VER: find_rush 37.1 (13.4.93)
  5. ;
  6. ; Bring Rush to the front if running, if not run another copy.
  7. ; This script takes one optional argument, the command to run,
  8. ; this is needed because status shows the command with the entire
  9. ; path.
  10. ;   If Rush is in you path, just execute "find_rush"
  11. ;   if not execute "find_path <full_rush_path>"
  12. ;
  13.  
  14. if "{cmd}" eq ""
  15.   set command "rush"
  16. else
  17.   set command "{cmd}"
  18. endif
  19.  
  20. status com=$command >env:rushprocess
  21.  
  22. if "$rushprocess" eq ""
  23.   run >nil: <nil: $command
  24. else
  25.   break $rushprocess f
  26. endif
  27.  
  28. delete quiet env:rushprocess
  29.