Changeset a81397c for client/bin/gbrm
- Timestamp:
- Jul 5, 2010, 5:05:46 PM (14 years ago)
- Branches:
- master, debian, mac, no-cups, web
- Children:
- 38388ac
- Parents:
- c5a98db
- git-author:
- Jessica B. Hamrick <jhamrick@…> (07/05/10 17:05:46)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (07/05/10 17:05:46)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client/bin/gbrm
rc5a98db ra81397c 5 5 use strict; 6 6 use warnings; 7 8 use Net::CUPS; 9 use Net::CUPS::Destination; 7 10 8 11 my $usage = "Usage: gbq QUEUE ID\n"; … … 36 39 @args = ("cancel", "-a", "$queue"); 37 40 } 41 elsif ($id eq "current") { 42 my $cups = Net::CUPS->new(); 43 $cups->setServer("$host"); 44 my $printer = $cups->getDestination("$queue"); 45 my @jobs = $printer->getJobs(0, 0); 46 my $id = $jobs[0]; 47 @args = ("cancel", "$id", "$queue"); 48 } 38 49 else { 39 50 @args = ("cancel", "$id", "$queue");
Note: See TracChangeset
for help on using the changeset viewer.