You can examine the resulting balance (see Querying The Balance).
Example 6. View amy's balance
$ gbalance -u amy Id Name Amount Reserved Balance CreditLimit Available --- ---------------------------- ------------ ------------ ------------ ---------------- ------------- 1 biology 25000000 0 25000000 0 25000000 2 chemistry on colony 50000000 0 50000000 0 50000000 3 chemistry for amy 9000000 0 9000000 1000000 10000000
We see that amy's total balance is composed of some 25000000 credits useable toward the biology project, 50000000 for chemistry on colony, and another 10000000 which can be used for chemistry on any machine. Notice that the 10000000 credits available for use in account 3 is composed of a 9000000 balance plus an overdraft limit of 1000000 (meaning your account can go negative by that amount).
Example 7. Retrieve amy's balance for chemistry on colony.
$ gbalance -u amy -p chemistry -m colony —total Balance -------- 59000000 The account balance is 60000000 credits
Example 8. Get the total that can be used by amy for chemistry on colony. This includes amy's available credit.
$ gbalance -u amy -p chemistry -m colony —total —available Balance -------- 60000000 The account balance is 60000000 credits