I'm trying to watch every second for a change in node with a ajob HScript function.
I'm trying to redirect the output of this script to Textport or linux shell (I'm wondering how to do it both ways )
so I'm trying to do something like:
ajob -p 1 opinfo(“/obj/lsystem_object1/lsystem9/”) // but I get no feedback in textport nor in shell
I was trying to connect it with functions such as “unix echo …” or simple “echo…”, but not succesfull
I assume you mean ‘atjob’, not ‘ajob’. I tried some simple things, and I think that command is pretty busted – its parsing is completely borked – put the whole thing into double-quotes, and it ceases functioning!
The problem is that you need backticks, e.g. atjob -p 1 echo `opinfp(“/obj/somewhere”)` but the backticks will evaluate now instead of on each itereation. I think this is worth sending in to SESI.
In the meantime, I'd put all your script into a .cmd file and make the atjob command source that cmd script. Note that regular ‘echo’ statements will not work, as the atjob processing is detached from the textport. But doing ‘unix echo’ from within the .cmd file should work.