Author Topic: commandline query qube?  (Read 5784 times)

cam

  • Jr. Member
  • **
  • Posts: 7
commandline query qube?
« on: January 14, 2010, 12:30:31 PM »
Hi support,

Can one query qube via commandline?

Say you know the id of a job can you ping qube and return the status (waiting/blocked/running/finished) or percent done?

Thanks,

cl

shinya

  • Administrator
  • *****
  • Posts: 232
Re: commandline query qube?
« Reply #1 on: January 14, 2010, 08:56:51 PM »
Yes, there are a number of command-line tools, found in QBDIR/bin/ folder,
such as "qbjobs", "qbhosts", etc.

Each command line tools has a "-help" option that'll display its syntax and options.

It's also possible to write your own command line tools using our Python, Perl or
C++ APIs, if you're so inclined.

cam

  • Jr. Member
  • **
  • Posts: 7
Re: commandline query qube?
« Reply #2 on: January 14, 2010, 09:18:22 PM »
Hi shinya,

Good info I will have a closer look at the docs.

I think the python api is what I would be after. Embedding submissions scripts into tools like maya seems pretty straighforward. Was curious about embedding simple reporting tool (say progress bars etc.).

thanks,

cl