home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga GigaPD 3
/
Amiga_GigaPD_v3_3of3.iso
/
rush
/
scripts
/
find_rush
< prev
next >
Wrap
AmigaDOS Script File
|
1993-06-25
|
587b
|
29 lines
.key cmd
.bra {
.ket }
; $VER: find_rush 37.1 (13.4.93)
;
; Bring Rush to the front if running, if not run another copy.
; This script takes one optional argument, the command to run,
; this is needed because status shows the command with the entire
; path.
; If Rush is in you path, just execute "find_rush"
; if not execute "find_path <full_rush_path>"
;
if "{cmd}" eq ""
set command "rush"
else
set command "{cmd}"
endif
status com=$command >env:rushprocess
if "$rushprocess" eq ""
run >nil: <nil: $command
else
break $rushprocess f
endif
delete quiet env:rushprocess