; filter_all.script by Steve Anderson, 12/22/90
;    Script to route all printed files through DJ_Filt
;
; Usage: put the following in your s:startup-sequence to always filter
;    your printer output through DJ_Filt (change the path of the script
;    as approprite for your setup):
;
; c:run <NIL: >NIL: execute s:filter_all.script
;
; At any time you can kill it by:
;  1) type 'status' and find which CLI process has the 'CMD' command
;  2) issue two quick 'break n' commands, where n is the CLI process
;     number.
;  3) type 'status' again to check - repeat if necessary.

failat 1

lab loop
  sys:utilities/CMD <NIL: >NIL: parallel RAM:dj_filt_file

lab check
if EXISTS RAM:dj_filt_file
  c:dj_filt ram:dj_filt_file par: ram:dj_filter.errors
  delete ram:dj_filt_file
else
  echo >ram:dfilt_script.err "File was not there as expected."
endif
wait <NIL: >NIL: 5
skip loop BACK
