HScript atjob output

   3744   4   2
User Avatar
Member
277 posts
Joined: July 2006
Offline
Hi!

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:

atjob -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

Please about help

Thank you
Edited by - April 5, 2010 19:52:46
User Avatar
Member
321 posts
Joined: July 2005
Offline
danilo2
Hi!

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.
Antoine Durr
Floq FX
antoine@floqfx.com
_________________
User Avatar
Member
277 posts
Joined: July 2006
Offline
Hi!
thank you very much! (of course atjob not ajob )

I'll inform SESI about this problem.

Could you please explain one step of the ‘meantime solution’:
“…and make the atjob command source that cmd script.”

Thank you
User Avatar
Member
321 posts
Joined: July 2005
Offline
danilo2
Could you please explain one step of the ‘meantime solution’:
“…and make the atjob command source that cmd script.”
atjob -p 1 source /my/path/myscript.cmd
Antoine Durr
Floq FX
antoine@floqfx.com
_________________
User Avatar
Member
277 posts
Joined: July 2006
Offline
ah ok than you!
  • Quick Links