Ubuntu :: Cancel All Pending Print Jobs Automatically When Loging Out Of A Session
Dec 14, 2010
Sometimes I want to keep something in PDF files, so I print to the PDF "printer". However, if I inadvertetnly forget to check the PDF creation and rather take the real printer (which is usually only powered up, when I really want to print something), printing goes to the real printers queue and nothing happens ... until, possibly some sessions later, I want to print something (on paper rather than PDF) and power up the printer.
Then all inadvertent garbage comes first and chances are big, that the printer gets junk during power up or reconnecting the cable to the computer and then the whole thing is wasting even more paper, since escape-sequences sent to the printer get chopped and misunderstood by the printer.
In order to stop this alltogether, I am looking for a mehtod, to automatically flush the whole printing queue every time when I log out of my ubuntu session.
I know, there is a command lpq to tell which print jobs are pending, I also know the command cancel -Umyname -a, but this requests for my password. I want to kill all those incomplete or pending print jobs automatically.
And how do I hook such a command script into the logoff or shutdown sequence?
I initially had a problem accessing the CUPS interface (see my other post) and got that resolved by adding the user "cupsys". Now, everything "looks" ok, and when I print a test page, it shows it as completed (in CUPS). However, the page never prints. The printer is a Canon MP600 (using the canonmp600en.ppd file to configure it). Here's the output of my conf file.
Code: # Show troubleshooting information in error_log. LogLevel debug
I have a problem with a network printer: every document I try to print it goes in the printing queue and there its status stays "pending" forever. Where could be the problem or where can I find clues to solve it?
Not sure when CUPS started acting up. I have the latest 13.1 current software installed.The first page to print is always OK, but all succeeding pages are overwritten. The second page shows the first page on top of it, and the third shows the preceding pages on top of it - and so on. Has anyone else seen this problem?I guess the printer buffer is not getting flushed correctly. If my configurations were trashed in some way, I don't know where to look for a fix.
I have 2 printers plugged into a Windows XP PC (an Epson Stylus Photo RX580, and an HP Laserjet 1020) with full sharing on and everything, and is shared with other Windows PCs via the network I have set up. It has worked perfect. But today I added a PC running Ubuntu 9.10 and and can't figure out for the life of me what I am doing wrong. I installed both of the printers via the GUI in Administration, and both of them are detected and Ubuntu says they're working. But when I put something in the queue to print it stays there with the status "pending".
So I have Fedora 14 installed on a laptop directly connected to my printer. I really never use the laptop except to send print jobs to it wirelessly. I was wondering if there was a way to make it suspend or sleep, or even idle everything down so it uses less power, but still listen for print jobs?
I have a problem with cups dropping print jobs. The machine fedora 13 installation using cups 1.4.4-10
The dropped jobs happen only rarely happen and therefore is difficult to debug the problem since it doesn't happen 99% of the time. This morning (while in the shower) I wondered if the lost jobs are lost because they are timing out, perhaps because of slow input from a user. I can test this more later in the week..
The print jobs are initiated from within a COBOL program. COBOL opens the print file as output and at this stage a job appears in the print queue with a status in the print queue of "held".
The user types in various bits of information and when complete the program executes the final write to the output print file. The job is somehow released and then is physically printed by CUPS. I suspect that if the user is slow the "held" job times out and then the job is lost.
There are a number of timeout directives in cups.conf but I am unsure which might be appropriate in this case. Or perhaps there is some other timeout thing happening.
I have a Brother MFC-295CN network printer. Been having a heck of a time trying to get this thing working since I installed Ubuntu 11.04 yesterday. I've been away from Linux for some time and am new at using it. Downloaded and installed using the Software Center:
I have no idea what's going on. I've had this machine running for over a year, and it's been great. A month or so ago, I realized that jobs weren't going to the printer. When i VNC'd in, I noticed that print jobs would show up in the queue as "Processing" briefly, then disappear.
lsusb: Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
I've even reinstalled the OS (not just for this reason) to no avail. Printer is dete cted without issue, I just can't use it.
I'm running openSUSe 11.3 on a laptop and the printer is connected to my desktop which is running Windows XP. I have the printer and several folders and drives shared. I can see the folders and drivers on my laptop but I cannot get the printer to actually print. It is an HP printer but I am not using HPLIP. I can send a print job to the queue and the printer resets itself like it's going to print but nothing else happens and the print job just sits in the queue until I hit cancel and restart then printer.
my ERP is sending multiple xml files to my queue and printing daemon reads each files and send it to windows printer (queue) where another software that uses each file and prints one document at a time.I would like to control first part when ERP send XML file I would like printing daemon to send files to windows queue in order the files came in from ERP. Currently it send it in random order. (i think it's based on how fast it can process, size of file..ect)
im searching a kde programm to show current print jobs. I've installed aptosid (actual version).I've searched the repository and I only found printer-applet which does not run in aptosid - I got the following error messages:
Code: Traceback (most recent call last): File "/usr/bin/printer-applet", line 1161, in <module>
We have a lpr server for printing (not CUPS for compatibility with complicated domain/systems). We configured our linux systems -- RHEL4, RHEL5, and Ubuntu 10.04 -- so that lpr is one of the gtk print possiblities by adding 'gtk-print-backends = "lpr,pdf,file"' to gtkrc. This works great for several gtk-enabled applications like Acrobat Reader (acroread).
However, Firefox 3+ (tested 3.6.3 & 3.0.19) doesn't actually queue any lpr jobs until after quitting the application.
We are running RHEL 5.1 on the 220.127.116.11 kernel. We are attempting to pass print jobs to a Lexmark printer with the lp -o landscape command. The print jobs continue to print "portrait". Is anyone aware of this issue and is there a work-around to get these print jobs to print in landscape format?
I need to setup a network scanner which will scan to a folder via the network onto an Ubuntu pc. When the file is scanned I need the Ubuntu pc to automatically print the file to the default printer and then deletes the scanned file.
I haven't been using Ubuntu very long and was not sure how to achieve this. I was wondering if perhaps I should write a script, after learning how to, that checks the folder for any files and then prints them. Once printed it then deletes the files. Would I need to have this script running via a scheduler that runs the script every second? Or is there another way to achieve this?
I'm connecting via ssh to an Ubuntu server that has a physical display attached.I'd like the physical display of the server to remain locked while I'm connected remotely.Is this possible? How? Also, is there a way to automatically unlock the screen for the VNC session, which is made from localhost via an ssh tunnel?
There are often times when the best way to launch an application is from the terminal, but it is a graphical application and after it is launched the terminal is useless.
Examples of places where a terminal is convenient are when a process starts lots of child processes and is also unstable; you can be sure to kill all of its children simply by using Ctrl-C at the terminal. Also it allows me to read program output and to set up the terminal environment to be optimal for the application (for example "unset LIBGL_ALWAYS_INDIRECT")
With GNU screen, I can get around the hassle of having a terminal window open by using something like the following in a terminal window:
Code: screen my_command Ctrl-A d
and then I can close the terminal and the program will keep running. Then I just type "screen -r <Tab>" (the tab will get me my screen session if there is only one such session) in any terminal window, even a tty, and I can get the screen session back and use Ctrl-c or something.
So my question is, is there a way to do this automatically so that a launcher or script will start a screen session, inside that screen session start a process, and then detach from that screen session without me having to manually open and close a terminal and type the commands?
I have a couple of large-format printers (Epson R2400, HP 9650) which I only use infrequently. If they are not used very often, they dry out, the print heads get packed up, it's an expensive mess to deal with when times comes to run off some prints. The printers are physically connected to a Windows machine to which my Ubuntu computer is networked.It would be helpful if there was a utility that could initiate a test page print job on the machines, which could be scheduled to run once a week or so. I've had no luck finding such a thing for Windows
Yesterday I was working on Ubuntu, i shut down the computer normally, and then when i restarted it like an hour later i couldn't bypass the login screen. I insert my username & password correctly and the screen goes back for one second and then displays the login and password inputs again. I have just one username there. Before i shut it down i was trying to install Eclipse, so i messed around with some files related to Eclipse only, if that has anything to do with the problem. I also have Windows XP installed along with Ubuntu 9.10.
I'm using a cd to try Ubuntu 11.04. New user here. I get a message that requests for the wireless network password. When entered it appears to be valid. When clicking on wireless icon it shows connected. When I launch FireFox it can't find a server. Then after a few minutes it once again asks for the wireless password.
I ran apt-get update to fetch firefox5. I didn't updated ubuntu since long so it down loaded around 280 updates including firefox. Now while installing I saw once EULA acceptance message for Microsoft ttf font installation, this message window doesn't have any button etc to confirm, so I did ctrl+c to exit, and then "apt-get" seems to have terminated in terminal.But I checked that it is still running in the background in process list, not sure active process or not.
I did rebooted PC assuming update might have completed. Now after reboot it boots up to the login prompt, but I don't see any cursor movement or key stroke effect. It just stays there and then after some time shuts down, with flashing error message relate to "Init.." i couldn't read it completely.
I have installed Debian squeeze(testing) xfce. While I was changing selecting themes for the xfce window manager. It logged off and came to the login screen(gdm I think). On giving the username and password, it again comes to the same login screen. I can't get to the desktop.
I have one of my Red Hat 5.4 box connected to the RHN and I managed to download and install selected files and updates. Lately, it has stopped doing so. I can go to the RHN webpage and select/apply the uppates I chose. But when I run the command "rhn_check", all I get is this
I have been forbidden to enable automatic updates on our Ubuntu servers, for both security and regular packages.When I log into any of my four Ubuntu servers, the welcome message contains this:
39 packages can be updated. 26 updates are security updates.
However, when I run the Nagios plugin that monitors APT, I get:
% /usr/lib/nagios/plugins/check_apt APT WARNING: 33 packages available for upgrade (0 critical updates).
I need to know how to properly detect that there are pending security updates, and regular updates. Once I can do that, I plan to write a Nagios script that will return WARNING for pending regular updates, and CRITICAL for pending security updates.