magneto Posted April 17, 2014 Share Posted April 17, 2014 Hi, I looked at the docs but the Python functions for these don't seem to be implemented. I couldn't find it in hscript either. Is there a way to query these values? Thanks Quote Link to comment Share on other sites More sharing options...
malexander Posted April 17, 2014 Share Posted April 17, 2014 Yes, in hscript, opstat -c <nodepath> 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted April 17, 2014 Author Share Posted April 17, 2014 Thanks Mark, it works Although when I am trying to use it inside a string parameter, it's unable to evaluate the expression: `opstat -c opinputpath(".", 0)` I tried assigning it to a variable and returning that but still doesn't work. Is it because this is a command that just prints out a value, but not return anything? Quote Link to comment Share on other sites More sharing options...
anim Posted April 17, 2014 Share Posted April 17, 2014 because opstat is hscript command, not hscript expression function you need to use run() or execute() expression function to execute commands so it'll be like `run( "opstat -c " + opinputpath(".",0) )` 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted April 17, 2014 Author Share Posted April 17, 2014 Thanks alot anim, it works great Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted April 18, 2014 Share Posted April 18, 2014 What if I would like extend HOM with HDK, what I should look for to get those dates? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.