- Timestamp:
- Jul 5, 2010, 9:04:02 PM (14 years ago)
- Branches:
- master, debian, mac, no-cups, web
- Children:
- 0d02eca
- Parents:
- b58aada
- git-author:
- Jessica B. Hamrick <jhamrick@…> (07/05/10 21:04:02)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (07/05/10 21:04:02)
- Location:
- client/bin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
client/bin/gbrm
rb58aada rd768767 41 41 if ($id eq "all") { 42 42 foreach $id(@jobs) { 43 $printer->cancelJob($id);43 cancel_job($id, $printer); 44 44 } 45 45 } 46 46 elsif ($id eq "current") { 47 47 $id = $jobs[0]; 48 $printer->cancelJob($id); 48 cancel_job($id, $printer); 49 } 50 elsif ($id eq "last") { 51 $id = $jobs[-1]; 52 cancel_job($id, $printer); 49 53 } 50 54 else { 55 cancel_job($id, $printer); 56 } 57 58 sub cancel_job { 59 my ($id, $printer) = @_; 60 my $job_ref = $printer->getJob($id); 61 my $title = $job_ref->{'title'}; 51 62 $printer->cancelJob($id); 63 64 print "Canceled job '$title' (id $id)\n"; 52 65 } -
client/bin/gbrm.1
ra81397c rd768767 14 14 .B current 15 15 is used in place of an id, then the current (top) job is removed from 16 the queue. The queue must have previously been added with 16 the queue. If 17 .B last 18 is used in place of an id, then the last job is removed from the 19 queue. The queue must have previously been added with 17 20 .B gutenbach-client-config 18 21 so that gbrm knows which host to use.
Note: See TracChangeset
for help on using the changeset viewer.