Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'lp -H immediate' should override server side job-hold-until-default #3013

Closed
michaelrsweet opened this issue Nov 17, 2008 · 2 comments
Closed
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.3-current
CUPS.org User: opher

Hello,
The lp documentation

http://www.cups.org/documentation.php/doc-1.3/man-lp.html

indicates that

-H resume
   Specifies when the job should be printed. A value of immediate will print the file immediately, a value of hold will hold the job indefinitely, and ...

It was my understanding, from this wording, that '-H immediate' should also override a server-side job-hold-until-default.

Regards,
Opher.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

@michaelrsweet
Copy link
Collaborator Author

"str3013.patch":

Index: systemv/lp.c

--- systemv/lp.c (revision 8140)
+++ systemv/lp.c (working copy)
@@ -418,8 +418,12 @@
num_options = cupsAddOption("job-hold-until", "no-hold",
num_options, &options);
else if (!strcmp(val, "immediate"))

  •   {
    
  •          num_options = cupsAddOption("job-hold-until", "no-hold",
    
  •                                 num_options, &options);
           num_options = cupsAddOption("job-priority", "100",
                                  num_options, &options);
    
  •   }
    else if (!strcmp(val, "restart"))
    {
      if (job_id < 1)
    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant