Changeset 3635420
- Timestamp:
- Oct 2, 2010, 10:44:31 PM (14 years ago)
- Branches:
- debian
- Children:
- 28dc075
- Parents:
- e15b0b0 (diff), e83b2d7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- Jessica B. Hamrick <jhamrick@…> (10/02/10 22:44:31)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (10/02/10 22:44:31)
- Files:
-
- 31 added
- 7 deleted
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
client/bin/gbq
r9dee329 rfc8707b 1 1 #!/usr/bin/perl 2 2 3 # Written by Jessica Hamrick (C) 2010 3 # This script was largely written by Jessica Hamrick (jhamrick), with 4 # help from Kyle Brogle (broglek) 4 5 5 6 use strict; … … 10 11 use Getopt::Long; 11 12 12 my $usage = "Usage: gbq [-q QUEUE]\n"; 13 # usage 14 my $usage = <<USAGE; 15 Usage: gbq [options] [-q QUEUE] 13 16 17 -q, --queue Specify a queue other than the default 18 -h, --help Print this message 19 USAGE 20 21 # initialize the variables for the options 14 22 my $q = ""; 15 GetOptions ('q|queue=s' => \$q);23 my $help = 0; 16 24 25 # parse the options 26 GetOptions ('q|queue=s' => \$q, 27 'h|help' => \$help); 28 29 # if the -h flag was passed, then print the usage and exit 30 if ($help) { 31 print $usage; 32 exit 0; 33 } 34 35 # if the -q option is not specified, then assume we're using the 36 # default queue 17 37 if (!$q) { 18 38 $q = "DEFAULT"; 19 39 } 20 40 41 # set configuration path, and complain if it doesn't exist 21 42 my $configpath = "$ENV{'HOME'}/.gutenbach/$q"; 22 43 if (! -e $configpath) { … … 25 46 } 26 47 48 # initialize the host and queue variables: host holds the address for 49 # the machine on which the remote queue runs, and queue holds the name 50 # of the printer 27 51 my ($host, $queue); 28 52 53 # load the configuration file (this will set $host and $queue) 29 54 if (-r $configpath) { 30 55 local $/; … … 34 59 } 35 60 61 # initialize a new CUPS session 36 62 my $cups = Net::CUPS->new(); 63 # set the server to the one specified in the config file 37 64 $cups->setServer("$host"); 65 # set the printer name to the one specified in the config file 38 66 my $printer = $cups->getDestination("$queue"); 39 67 68 # if $printer is not defined, then throw an error 40 69 unless( $printer){ 41 70 print "Cannot access queue $q...do you have network connectivity and permission to view the queue?\n"; 42 71 exit 1; 43 72 } 73 74 # print pretty headings and stuff 44 75 print "Queue listing for queue '$queue' on '$host'\n\n"; 45 76 printf ("%-8s%-15s%s\n","Job","Owner","Title"); 46 77 print "-"x70 . "\n"; 78 79 # get the list of jobs from the printer 47 80 my @jobs = $printer->getJobs(0, 0); 81 82 # initialize the job reference and job id variables 48 83 my ($job_ref, $jobid); 49 84 85 # for each job in the list of jobs: 50 86 foreach $jobid(@jobs) 51 87 { 52 $job_ref = $printer->getJob($jobid); 53 my $id = $job_ref->{'id'}; 54 my $user = $job_ref->{'user'}; 55 my $title = $job_ref->{'title'}; 88 # get the reference to the job (so we can get various related 89 # variables) 90 $job_ref = $printer->getJob($jobid); 56 91 57 printf ("%-8s%-15s%s\n","$id",substr("$user",0,15),substr("$title",0,47)); 92 # get the id of the job 93 my $id = $job_ref->{'id'}; 94 # get the user who printed the job 95 my $user = $job_ref->{'user'}; 96 # get the title of the job 97 my $title = $job_ref->{'title'}; 98 99 # print the job information to the screen 100 printf ("%-8s%-15s%s\n","$id",substr("$user",0,15),substr("$title",0,47)); 58 101 } -
client/bin/gbq.1
r7cdd65d re83b2d7 1 .TH gbq 1 " 27 June2010"1 .TH gbq 1 "02 October 2010" 2 2 .SH NAME 3 3 gbq \- displays a remote Gutenbach queue … … 9 9 the current jobs, along with ID numbers, owners, and filenames. The 10 10 Gutenbach queue must have previously been added with 11 .B gutenbach-client-config 12 so that gbq knows which host to use. If no queue is specified, 13 .B gbq 14 will try to use the default queue, if one is configured. 11 \fBgutenbach-client-config\fR so that gbq knows which host to use. If 12 no queue is specified, \fBgbq\fR will try to use the default queue, if 13 one is configured. 14 .TP 15 \fB\-q\fR, \fB\-\-queue\fR 16 Specify a queue other than the default 17 .TP 18 \fB\-h\fR, \fB\-\-help\fR 19 Print the help message 15 20 .SH SEE ALSO 16 21 gbr(1), gbrm(1), gutenbach-client-config(1) -
client/bin/gbr
r600e713 r43ddb7a 1 1 #!/usr/bin/perl 2 2 3 # Written by Jessica Hamrick (C) 2010 3 # This script was largely written by Jessica Hamrick (jhamrick), with 4 # help from Kyle Brogle (broglek) 4 5 5 6 use strict; … … 10 11 use Getopt::Long; 11 12 use Image::ExifTool qw(ImageInfo); 13 use List::Util 'shuffle'; 14 use File::Find; 12 15 13 my $usage = "Usage: gbr QUEUE FILES\n"; 16 # the usage for this script 17 my $usage = <<USAGE; 18 Usage: gbr [options] [-q QUEUE] FILES 14 19 20 -q, --queue Specify a queue other than the default 21 -d, --dryrun Just list what would be done 22 -s, --shuffle Randomize the order that the songs are queued in 23 -r, --recursive Recursively find files if a directory is passed in 24 -n, --number NUMBER Only print NUMBER files, if more than NUMBER are given 25 (this will print the first NUMBER files if -s is not given) 26 -h, --help Print this message 27 USAGE 28 29 # initialize the variables for the options 15 30 my $q = ""; 16 GetOptions ('q|queue=s' => \$q); 31 my $dryrun = 0; 32 my $help = 0; 33 my $shuffle = 0; 34 my $recursive = 0; 35 my $number = 0; 17 36 37 # parse the options 38 GetOptions ('q|queue=s' => \$q, 39 'd|dryrun' => \$dryrun, 40 'h|help' => \$help, 41 's|shuffle' => \$shuffle, 42 'r|recursive' => \$recursive, 43 'n|number=i' => \$number); 44 45 # if the -h flag was passed, then print the usage and exit 46 if ($help) { 47 print $usage; 48 exit 0; 49 } 50 51 # get the files to print from the arguments 18 52 my @files = @ARGV[0 .. $#ARGV]; 53 my @allfiles; 19 54 55 # if the recursive flag was passed, then recursively find files 56 if ($recursive) { 57 58 # helper function to add a file to the end of the list, but only 59 # if it is a file (and not a directory) 60 sub append { 61 my $name = $File::Find::name; 62 if (-f $name) { 63 push(@allfiles, $name); 64 } 65 } 66 67 # recursively find all the files and add them to @allfiles 68 find(\&append, @files); 69 70 # if we're not shuffling the list, then sort the files. If we are 71 # shuffling the list, then don't bother sorting (since we're going 72 # to shuffle it anyway) 73 unless ($shuffle) { 74 @files = sort(@allfiles); 75 } else { 76 @files = @allfiles; 77 } 78 } 79 80 # if the shuffle flag was passed, then shuffle the order of the files 81 if ($shuffle) { 82 @files = shuffle(@files); 83 } 84 85 # if the number flag was specified, then only play the specified 86 # number of files 87 if ($number > 0 and $number < $#files) { 88 @files = @files[0 .. $number-1] 89 } 90 91 # if the -q option is not specified, then assume we're using the 92 # default queue 20 93 if (!$q){ 21 94 $q = "DEFAULT"; 22 95 } 96 97 # if there are no files specified to print, then show the usage, 98 # because the user is Doing It Wrong 23 99 if (!@files) { 24 100 print $usage; … … 26 102 } 27 103 104 # set configuration path, and complain if it doesn't exist 28 105 my $configpath = "$ENV{'HOME'}/.gutenbach/$q"; 29 106 if (! -e $configpath) { … … 32 109 } 33 110 111 # initialize the host and queue variables: host holds the address for 112 # the machine on which the remote queue runs, and queue holds the name 113 # of the printer 34 114 my ($host, $queue); 35 115 116 # load the configuration file (this will set $host and $queue) 36 117 if (-r $configpath) { 37 118 local $/; … … 41 122 } 42 123 124 # initialize a new CUPS session 43 125 my $cups = Net::CUPS->new(); 126 # set the server to the one specified in the config file 44 127 $cups->setServer("$host"); 128 # set the printer name to the one specified in the config file 45 129 my $printer = $cups->getDestination("$queue"); 130 131 # if $printer is not defined, then throw an error 46 132 unless( $printer){ 47 print "Cannot access queue $q... do you have network connectivity and permission to view the queue?\n";133 print "Cannot access queue $q... do you have network connectivity and permission to view the queue?\n"; 48 134 exit 1; 49 135 } 136 137 # initialize the job id and title variables for use below 50 138 my ($jobid, $title); 51 139 140 # for each file that the user wants to print 52 141 foreach my $file(@files) { 142 143 # check to see if the file is a youtube video. If it is, then 144 # write the URL to a temporary file, and set the number of copies 145 # on the print job to 42 (this is the dirty hack we have in place 146 # to indicate that the job is a youtube file instead of a normal 147 # file) 53 148 if ($file =~ m|http://www\.youtube\.com/watch\?v=|) { 54 149 open FILE, ">", "/tmp/gutenbach-youtube" or die "Couldn't create temporary file"; … … 58 153 $printer->addOption("copies", 42); 59 154 } 155 156 # otherwise, we assume it's a normal file. Try to use exiftool's 157 # ImageInfo to find out the tag information about the file (i.e., 158 # title, artist, and album). If you can, then rename the job to 159 # reflect those tags. Otherwise, keep the normal title. 60 160 else { 61 161 my $fileinfo = ImageInfo($file); … … 70 170 } 71 171 72 $jobid = $printer->printFile($file, $title); 73 74 if ($jobid) { 75 print "Sent job '$title' (id $jobid)\n"; 76 } 77 else { 78 print "Error sending job '$title'\n"; 79 } 172 # unless it's a dry run, send the print job, given the file and 173 # the job title 174 unless ($dryrun) { 175 $jobid = $printer->printFile($file, $title); 176 177 # if the printFile command returned a job id, then print that out 178 # for the user to see 179 if ($jobid) { 180 print "Sent job '$title' (id $jobid)\n"; 181 } 182 183 # otherwise, let them know that an error occurred 184 else { 185 print "Error sending job '$title'\n"; 186 } 187 188 # otherwise, just print what we would do 189 } else { 190 print "Would send file '$file' with title '$title'\n"; 191 } 80 192 } -
client/bin/gbr.1
r7cdd65d re83b2d7 1 .TH gbr 1 " 27 June2010"1 .TH gbr 1 "02 October 2010" 2 2 .SH NAME 3 3 gbr \- sends a file to a Gutenbach queue 4 4 .SH SYNOPSIS 5 5 .B gbr 6 [ -q \fIQUEUE\fR] \fIFILES\fR6 [options] [-q \fIQUEUE\fR] \fIFILES\fR 7 7 .SH DESCRIPTION 8 8 Prints files to a Gutenbach queue, given the queue name and the path 9 to the files. gbr correctly handles pathname expansion, so (for 10 example), if you wish to play all .mp3 files in a directory, the 11 command `gbr $queue *.mp3` will send each .mp3 as a separate job. The 12 path may also be a URL to a 13 .B YouTube 14 video (e.g. http://www.youtube.com/watch?v=foo). The Gutenbach queue 15 must have previously been added with 16 .B gutenbach-client-config 17 so that gbr knows which host to use. If no queue is specified, 18 .B gbr 19 will try to use the default queue, if one is configured. 9 to the files. If no queue is specified with the \fB\-q\fR option, 10 then the default queue will be used (which should be specified with 11 \fBgutenbach-client-config\fR). gbr correctly handles pathname 12 expansion, so (for example), if you wish to play all .mp3 files in a 13 directory, the command `gbr $queue *.mp3` will send each .mp3 as a 14 separate job. The path may also be a URL to a \fBYouTube\fR video 15 (e.g. http://www.youtube.com/watch?v=foo). The Gutenbach queue must 16 have previously been added with gutenbach-client-config so that gbr 17 knows which host to use. If no queue is specified, gbr will try to 18 use the default queue, if one is configured. 19 .TP 20 \fB\-q\fR, \fB\-\-queue\fR 21 Specify a queue other than the default 22 .TP 23 \fB\-d\fR, \fB\-\-dryrun\fR 24 Just list what would be done 25 .TP 26 \fB\-s\fR, \fB\-\-shuffle\fR 27 Randomize the order that the songs are queued in 28 .TP 29 \fB\-r\fR, \fB\-\-recursive\fR 30 Recursively find files if a directory is passed in 31 .TP 32 \fB\-n\fR, \fB\-\-number\fR \fINUMBER\fR 33 Only print NUMBER files, if more than NUMBER are given (this will 34 print the first NUMBER files if -s is not given) 35 .TP 36 \fB\-h\fR, \fB\-\-help\fR 37 Print the help message 20 38 .SH SEE ALSO 21 39 gbq(1), gbrm(1), gutenbach-client-config(1) -
client/bin/gbrm
r7cdd65d rfc8707b 1 1 #!/usr/bin/perl 2 2 3 # Written by Jessica Hamrick (C) 2010 3 # This script was largely written by Jessica Hamrick (jhamrick), with 4 # help from Kyle Brogle (broglek) 4 5 5 6 use strict; … … 10 11 use Getopt::Long; 11 12 12 my $usage = "Usage: gbq [-q QUEUE] ID\n"; 13 # usage 14 my $usage = <<USAGE; 15 Usage: gbq [options] [-q QUEUE] ID 16 17 -q, --queue Specify a queue other than the default 18 -h, --help Print this message 19 USAGE 20 21 # initialize the variables for the options 13 22 my $q = ""; 14 GetOptions ('q|queue=s' => \$q); 23 my $help = 0; 24 25 # parse the options 26 GetOptions ('q|queue=s' => \$q, 27 'h|help', => \$help); 28 29 # if the -h flag was passed, then print the usage and exit 30 if ($help) { 31 print $usage; 32 exit 0; 33 } 15 34 16 35 my @ids = @ARGV[0 .. $#ARGV]; 17 36 18 if (!$q){ 37 # if the -q option is not specified, then assume we're using the 38 # default queue 39 if (!$q) { 19 40 $q = "DEFAULT"; 20 41 } 42 43 # if there are no ids specified to remove, then print the usage 21 44 if (!@ids) { 22 45 print $usage; … … 24 47 } 25 48 26 49 # set configuration path, and complain if it doesn't exist 27 50 my $configpath = "$ENV{'HOME'}/.gutenbach/$q"; 28 51 if (! -e $configpath) { … … 31 54 } 32 55 56 # initialize the host and queue variables: host holds the address for 57 # the machine on which the remote queue runs, and queue holds the name 58 # of the printer 33 59 my ($host, $queue); 34 60 61 # load the configuration file (this will set $host and $queue) 35 62 if (-r $configpath) { 36 63 local $/; … … 40 67 } 41 68 69 # initialize a new CUPS session 42 70 my $cups = Net::CUPS->new(); 71 # set the server to the one specified in the config file 43 72 $cups->setServer("$host"); 73 # set the printer name to the one specified in the config file 44 74 my $printer = $cups->getDestination("$queue"); 75 76 # if $printer is not defined, then throw an error 45 77 unless( $printer){ 46 78 print "Cannot access queue $q...do you have network connectivity and permission to view the queue?\n"; 47 79 exit 1; 48 80 } 81 82 # get the list of jobs from the printer 49 83 my @jobs = $printer->getJobs(0, 0); 84 85 # for each id that we want to remove 50 86 foreach my $id(@ids){ 51 if ($id eq "all") { 52 foreach $id(@jobs) { 87 88 # if the id is 'all', then we remove all jobs 89 if ($id eq "all") { 90 foreach $id(@jobs) { 91 cancel_job($id, $printer); 92 } 93 } 94 95 # if the id is 'current', then we remove just the currently 96 # playing job 97 elsif ($id eq "current") { 98 $id = $jobs[0]; 53 99 cancel_job($id, $printer); 54 100 } 55 } 56 elsif ($id eq "current") { 57 $id = $jobs[0];58 cancel_job($id, $printer);59 } 60 elsif ($id eq "last") { 61 $id = $jobs[-1]; 62 cancel_job($id, $printer);63 } 64 else{65 foreach my $item(@jobs){66 if($item =~ /$id/){67 cancel_job($item, $printer);101 102 # if the id is 'last', then we remove just the last job 103 elsif ($id eq "last") { 104 $id = $jobs[-1]; 105 cancel_job($id, $printer); 106 } 107 108 # otherwise, remove the job based on its actual (numeric) id 109 else { 110 foreach my $item(@jobs) { 111 if($item =~ /$id/){ 112 cancel_job($item, $printer); 113 } 68 114 } 69 115 } 70 116 } 71 }72 117 118 # helper function to remove a job 73 119 sub cancel_job { 120 # get the id and printer from the arguments 74 121 my ($id, $printer) = @_; 122 # get the reference to the job 75 123 my $job_ref = $printer->getJob($id); 124 # find the job title (so we can print it out for the user) 76 125 my $title = $job_ref->{'title'}; 126 # cancel the job 77 127 $printer->cancelJob($id); 78 128 129 # print out that we canceled the job 79 130 print "Canceled job '$title' (id $id)\n"; 80 81 131 } -
client/bin/gbrm.1
r7cdd65d re83b2d7 1 .TH gbrm 1 " 27 June2010"1 .TH gbrm 1 "02 October 2010" 2 2 .SH NAME 3 3 gbrm \- removes jobs from a Gutenbach queue … … 7 7 .SH DESCRIPTION 8 8 Removes a single job from a Gutenbach queue, given the job id, which 9 can be obtained with the 10 .B gbq 11 command. If 12 .B all 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. 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 20 .B gutenbach-client-config 21 so that gbrm knows which host to use. If no queue is specified, 22 .B gbr 23 will try to use the default queue, if one is configured. 9 can be obtained with the \fBgbq\fR command. If no queue is specified 10 with the \fB\-q\fR option, then the default queue will be used (which 11 should be specified with \fBgutenbach-client-config\fR). If \fBall\fR 12 is used in place of an id, then all jobs are removed from the queue. 13 If \fBcurrent\fR is used in place of an id, then the current (top) job 14 is removed from the queue. If \fBlast\fR is used in place of an id, 15 then the last job is removed from the queue. The queue must have 16 previously been added with gutenbach-client-config so that gbrm knows 17 which host to use. 18 .TP 19 \fB\-q\fR, \fB\-\-queue\fR 20 Specify a queue other than the default 21 .TP 22 \fB\-h\fR, \fB\-\-help\fR 23 Print the help message 24 24 .SH SEE ALSO 25 25 gbr(1), gbq(1), gutenbach-client-config(1) -
client/bin/gutenbach-client-config
r7cdd65d rfc8707b 1 1 #!/usr/bin/perl 2 2 3 # Written by Jessica Hamrick, (C) 2010 3 # This script was largely written by Jessica Hamrick (jhamrick), with 4 # help from Kyle Brogle (broglek) 4 5 5 6 use strict; … … 7 8 use Getopt::Long; 8 9 9 my $usage = 10 "Usage: gutenbach-client-config [-l|--list|-a|--add|-d|--delete] [QUEUE] [--host=HOST]\n" . 11 "\n" . 12 "\t-l, --list\t\tList available queues\n" . 13 "\t-a, --add QUEUE\t\tAdd a queue (must be used with -h)\n" . 14 "\t-d, --delete QUEUE\tDelete a queue)\n" . 15 "\t-h, --host HOST\t\tHostname for the queue\n"; 10 # the usage for the program 11 my $usage = <<USAGE; 12 Usage: gutenbach-client-config [options] 16 13 14 -l, --list List available queues 15 -a, --add QUEUE Add a queue (must be used with -h) 16 -d, --delete QUEUE Delete a queue 17 -s, --set-default QUEUE Set the default queue 18 -h, --host HOST Hostname for the queue (must be used with -a) 19 -H, --help Print this message 20 USAGE 21 22 # initialize the variables that will hold the arguments 17 23 my $list = 0; 18 24 my $add = ""; … … 20 26 my $host = ""; 21 27 my $default = ""; 28 my $help = 0; 22 29 30 # get the options from the command line 23 31 GetOptions ('l|list' => \$list, 24 32 's|set-default=s' => \$default, 25 33 'a|add=s' => \$add, 26 34 'd|delete=s' => \$delete, 27 'h|host=s' => \$host); 35 'h|host=s' => \$host, 36 'H|help' => \$help); 28 37 38 # if the -H flag was passed, then print the usage and exit 39 if ($help) { 40 print $usage; 41 exit 0; 42 } 43 44 # set the path where the configuration files live 29 45 my $configpath = "$ENV{'HOME'}/.gutenbach"; 30 46 47 # if the configuration path doens't exist, then make it 31 48 if (! -e $configpath) { 32 49 mkdir "$configpath"; 33 50 } 34 #set given queue to default 51 52 # if the 'default' option was specified, then set given queue to 53 # default 35 54 if($default and !$add and !$delete and !$list) { 55 # if the specified queue doesn't exist, then throw an error 36 56 unless(-e "$configpath/$default") { 37 57 print "Error: queue '$default' doesn't exist yet...you should add it first.\n"; 38 58 exit 1; 39 59 } 60 61 # if there already exists a default, then remove it so we can 62 # replace it with the new default 40 63 if( -e "$configpath/DEFAULT"){ 41 64 unlink("$configpath/DEFAULT") or die "Couldn't remove config file '$configpath/DEFAULT'"; 42 65 } 66 67 # check to make sure we can create symlinks 43 68 my $symlink_exists = eval { symlink("",""); 1 }; 69 70 # if so, then create the symlink and report it 44 71 if ($symlink_exists){ 45 72 symlink("$configpath/$default","$configpath/DEFAULT"); 46 73 print "Changed default queue to $default.\n"; 47 74 } 75 76 # otherwise, throw an error 48 77 else 49 78 { … … 52 81 } 53 82 } 54 55 56 83 57 # list the existing queues84 # if the 'list' option was specified, then list the existing queues 58 85 elsif ($list and !$add and !$delete and !$default) { 86 # get the config files in the configuration path -- these are the queues 59 87 my @queues = glob("$configpath/*") or die "Couldn't find configuration files at '$configpath'"; 60 88 89 # for each of the queues, load the configuration file and print 90 # the queue name and the host it's on 61 91 print "Queue\t\tHost\n"; 62 92 foreach my $q (@queues) { … … 74 104 } 75 105 76 # add a new queue106 # if the 'add' option was specified, then add a new queue 77 107 elsif (!$list and $add and !$delete) { 108 109 # make sure there was a host specified as well (otherwise, we 110 # won't know where to print to) 78 111 if (!$host) { 79 112 print $usage; … … 81 114 } 82 115 116 # if the queue already exists, then print a warning 83 117 if (-e "$configpath/$add") { 84 118 print "Warning: queue '$add' already exists\n"; 85 119 } 86 120 121 # create the configuration file 87 122 open CONFIG, "> $configpath/$add" or die "Couldn't open config file '$configpath/$add'"; 88 123 print CONFIG "\$host = \"$host\";\n"; … … 93 128 } 94 129 95 # delete an existing queue130 # if the 'delete' option was specified, then delete an existing queue 96 131 elsif (!$list and !$add and $delete) { 132 133 # if the queue doesn't exist, then print an error and exit 97 134 if (! -e "$configpath/$delete") { 98 print "Error: queue '$delete' already exists\n";135 print "Error: queue '$delete' does not exist\n"; 99 136 exit 1; 100 137 } 101 138 139 # otherwise, remove the configuration file 102 140 unlink("$configpath/$delete") or die "Couldn't remove config file '$configpath/$delete'"; 103 141 } 104 142 143 # otherwise, it's an unrecognized option, so print the usage and exit 105 144 else { 106 145 print $usage; -
client/bin/gutenbach-client-config.1
r7cdd65d re83b2d7 1 .TH gutenbach-client-config 1 " 27 June2010"1 .TH gutenbach-client-config 1 "02 October 2010" 2 2 .SH NAME 3 3 gutenbach-client-config \- displays a remote Gutenbach queue 4 4 .SH SYNOPSIS 5 5 .B gutenbach-client-config 6 [ -l|--list|-a|--add|-d|--delete|-s|--set-default] [\fIQUEUE\fR] [--host \fIHOST\fR]6 [options] 7 7 .SH DESCRIPTION 8 8 Provides options to add, remove, or list remote Gutenbach queues. The … … 25 25 \fB\-a\fR, \fB\-\-add\fR QUEUE 26 26 Add a remote queue. Must be used in conjunction with 27 .B --host27 .B \fB\-\-host\fR 28 28 .TP 29 \fB\-d\fR, \fB\-\-delete\fR QUEUE 30 Delete a remote queue. Must be used in conjunction with 31 .B --host 32 . 29 \fB\-d\fR, \fB\-\-delete\fR QUEUE Delete a remote queue. 30 .TP 31 \fB\-s\fR, \fB\-\-set\-default\fR QUEUE 32 Set the default queue 33 33 .TP 34 34 \fB\-h\fR, \fB\-\-host\fR HOST 35 35 Hostname for the queue 36 36 .TP 37 \fB\- s\fR, \fB\-\-set\-default\fR QUEUE38 Set the default queue37 \fB\-H\fR, \fB\-\-help\fR 38 Print a help message 39 39 .SH SEE ALSO 40 40 gbr(1), gbrm(1), gbq(1) -
remctl/lib/gutenbach/volume-helper.py
rbbede33 r86f0b5b 27 27 v = getVolume() 28 28 newV = percent 29 for i in range(10 ):29 for i in range(10+1): 30 30 frac = i/10 31 31 tempV = int(v + (newV-v)*frac) -
.gitignore
rb58aada r1d7e681 1 1 *~ 2 debian/files 3 debian/*.debhelper 4 debian/*.substvars 5 debian/*.debhelper.log 6 debian/gutenbach/ 7 debian/gutenbach-client/ 8 debian/gutenbach-queue/ 9 debian/gutenbach-remctl/ 10 debian/gutenbach-server/ 11 debian/stamp-makefile-build 12 debian/tmp/ 2 13 client/bin/*.1.gz 3 debian/ -
Makefile
r9c0279e r2116615 5 5 install: 6 6 for d in $(DIRS); do (cd $$d; $(MAKE) install); done 7 clean: 8 for d in $(DIRS); do (cd $$d; $(MAKE) clean); done
Note: See TracChangeset
for help on using the changeset viewer.