/ no dayend except 0#, can connect to tick.q or chainedtick.q tickerplant / q chainedr.q :5110 -p 5111 foo 2>&1 & / q tick/chainedr.q [host]:port[:usr:pwd] [-p 5111] if[not "w"=first string .z.o;system "sleep 1"] if[not system"p";system"p 5111"] upd:insert / get the chained ticker plant port, default is 5110 .u.x:.z.x,(count .z.x)_enlist":5110" / end of day: clear ONLY .u.end:{@[`.;.q.tables`.;@[;`sym;`g#]0#];} / init schema and sync up from log file .u.rep:{(.[;();:;].)each x;if[null first y;:()];-11!y;} / connect to tickerplant or chained ticker plant for (schema;(logcount;log)) .u.rep .(hopen`$":",.u.x 0)"(.u.sub[`;`];$[`m in key`.u;(`.u `m)\"`.u `i`L\";`.u `i`L])"