Forum OpenACS Q&A: Response to Watching Files - Quick Select

Posted by Michael Hinds on

How about putting this into 0-package_key-startup-procs.tcl:

# if this is the dev server, watch the contents of package_key/tcl
if {[string equal [info host] your_server_name]} {

  cd acs_root/packages/package_key/tcl
  set files [glob *.tcl]
  foreach file $files {

    ns_log notice "0-package_key-startup-procs.tcl: watching $file"
    apm_file_watch "packages/package_key/tcl/$file"


This watches all .tcl files for your package at server startup.