Changeset d768767 for client/bin/gbrm
- 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)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.