Author Topic: n00b here, need help with terminal commands :)  (Read 3851 times)

bomba

  • Jr. Member
  • **
  • Posts: 2
n00b here, need help with terminal commands :)
« on: July 28, 2010, 02:42:43 PM »
Hi everybody ,
Im completely new to Qube and I only really understand the basics.

I am just getting into all the commands with the terminal and could really use some help.

When I use qbremove I get this "removed job: 2681" but the spool folder is already completely empty and nothing changes in the GUI (nothing is removed).

I am trying to clean up the job layout as there are about 3000 that need be deleted.

If there are any guides beside the help files plz lemme know :)

Thanks :)

shinya

  • Administrator
  • *****
  • Posts: 232
Re: n00b here, need help with terminal commands :)
« Reply #1 on: July 29, 2010, 05:15:36 PM »
Hi bomba,

Does it not help if you do a "refresh" in the GUI?

If the spool folder is wiped after a "qbremove", then it does sound like it's actually working-- it maybe just an issue with the GUI displaying incorrectly.  Try a "qbjobs" to make sure. 

Do you have more luck if you removed jobs using the right-click popup menu
in the job layout?


bomba

  • Jr. Member
  • **
  • Posts: 2
Re: n00b here, need help with terminal commands :)
« Reply #2 on: August 02, 2010, 02:31:41 PM »
 Thanks for your reply!

I had to restart qube to see the changes take effect, refresh didn't work.

When I try to delete job via GUI I get this:
Code: [Select]
MYSQL>>> SELECT * FROM 20qube.2682work
MySQL Error: (1146, "Table '20qube.2682work' doesn't exist")

Also, even though there are thousands of jobs still in the GUI the spool folder is empty, where are all these files?



Does qube get my user permissions from the computer OS?

What are the most commonly used scripts or codes, and are these scripts c++ ?


Sorry if my n00b questions offend you at all ><
« Last Edit: August 02, 2010, 03:24:44 PM by bomba »

shinya

  • Administrator
  • *****
  • Posts: 232
Re: n00b here, need help with terminal commands :)
« Reply #3 on: August 03, 2010, 08:37:34 PM »
Hi bomba,

What happens if you open a command prompt, and run the following command:

 qbjobs <JOBID>

where <JOBID> is the job ID of a job that you've removed but still shows in the GUI.

Also, where are you looking for the logs? That is, which "spool folder" on which
machine are you looking at?  By default, the qube job logs are save on the supervisor
host, and the specific location depends on the OS:

Windows XP:
-----------------------------------
\Program Files\pfx\qube\logs\job

Windows 2008 / Vista / Window7:
-----------------------------------
\ProgramData\Pfx\Qube\logs\job

Linux, OS X:
-----------------------------------
/var/spool/qube/job

Again, this is all on the supervisor machine.

Qube's permissions are name-based, and can be controlled by the "qbusers" command.  If you have a recent version of the Qube GUI (5.5.x or above, I think),
it can also be controlled by the GUI, under the "Admin Layout". 

See the Administration.PDF doc, chapter 7 "User Permissions," for more details.

As for scripting and custom development, Qube's native API is in C++, but we
also support API bindings in Perl and Python.  Again, there's a Development.PDF
doc that details it all, and also docs particularly for Python development.  Look
for examples in your <QBDIR>/examples/ directory, where <QBDIR> is your
Qube installation directory.