hi,how can i temporarily capture (or redirect) stdout when a script file isloaded via ipc and the remote q process is running in a console?/ /tmp/script.qtil 10h hopen:host:porth"@[{system \"l /tmp/script.q\"};::;:]" / 1 2 3 goes to remote consolei have looked into the use of .z.pi / .z.pg / .z.ps but failed so far tomake it work for my case specific case. e.g.z.pi:{ rs:.Q.s @[{value x};x;{
$x}]; `:/tmp/q.log 0: (rs;“”); rs }works on the console but doenst seems to get called on a load via ipc(.z.pg does, but with my system load command).or alternatively - how can i restore the original writing to the consoleafter i’ve issued a:h"system "1 /tmp/somefile""i am able to deal with the situation when the process is running as adeamon and stdout was redirected to a log file on that host~/q/l32/q -q -p 5000 < /dev/null > /tmp/rq.out 2>/tmp/rq.err.also, i would prefer to not have to modify the script file to assigneach sentence to a variable and then ‘get’ the variable remotely.any input or pointer would be much appreciated.thank you.theo.