Changeset 335786f
- Timestamp:
- Aug 14, 2010, 3:16:14 PM (14 years ago)
- Branches:
- master, debian, mac, no-cups
- Children:
- 618236b, 55b24d1
- Parents:
- 79fac02
- git-author:
- Kyle Brogle <broglek@…> (08/14/10 15:16:14)
- git-committer:
- Kyle Brogle <broglek@…> (08/14/10 15:16:14)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client/bin/gbrm
r9fdf4a1 r335786f 12 12 13 13 my $q = $ARGV[0]; 14 my $id = $ARGV[1];14 my @ids = @ARGV[1 .. $#ARGV]; 15 15 16 if (!$q or ! $id) {16 if (!$q or !@ids) { 17 17 print $usage; 18 18 exit 1 … … 42 42 } 43 43 my @jobs = $printer->getJobs(0, 0); 44 44 foreach my $id(@ids){ 45 45 if ($id eq "all") { 46 46 foreach $id(@jobs) { … … 57 57 } 58 58 else { 59 cancel_job($id, $printer); 59 foreach my $item(@jobs) { 60 if($item =~ /$id/){ 61 cancel_job($item, $printer); 62 } 63 } 64 } 60 65 } 61 66 … … 67 72 68 73 print "Canceled job '$title' (id $id)\n"; 74 69 75 }
Note: See TracChangeset
for help on using the changeset viewer.