Changeset a81397c for client/bin
- 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)
- Location:
- client/bin
- Files:
-
- 2 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"); -
client/bin/gbrm.1
r2c76f34 ra81397c 4 4 .SH SYNOPSIS 5 5 .B gbrm 6 \fIQUEUE\fR [all| \fIID\fR]6 \fIQUEUE\fR [all|current|\fIID\fR] 7 7 .SH DESCRIPTION 8 8 Removes a single job from a Gutenbach queue, given the job id, which … … 11 11 command. If 12 12 .B all 13 is used in place of an id, then all jobs are removed from the queue. 14 The queue must have previously been added with 13 is used in place of an id, then all jobs are removed from the queue. If 14 .B current 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 15 17 .B gutenbach-client-config 16 18 so that gbrm knows which host to use.
Note: See TracChangeset
for help on using the changeset viewer.