Results 1 to 9 of 9
I use the emacs-style cursor navigation in my terminals (ie Ctrl + (p,n,b,f,etc.)). Sometimes I must accidentally hit a wrong shortcut because i get absolutely random print jobs sent to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-16-2008 #1Just Joined!
- Join Date
- Nov 2005
- Posts
- 80
Accidentally printing from STDIN in terminal???
I use the emacs-style cursor navigation in my terminals (ie Ctrl + (p,n,b,f,etc.)). Sometimes I must accidentally hit a wrong shortcut because i get absolutely random print jobs sent to my printer when im using the terminal. According to cups, these Name of these jobs are all "stdin". It really sucks because when this happens i get like 100+ jobs sent to my printer. This happens frequently enough that it's a pain in the ass, but infrequently enough that i never know what keys i hit when it happens. Anyone know what I'm doing? I use mainly xterm and Eterm. Any help would be greatly appretiated.
- 03-17-2008 #2
Does this problem occur when you are in a specific directory or everywhere?
- 03-17-2008 #3Just Joined!
- Join Date
- Nov 2005
- Posts
- 80
hmmm... I seem to remember alot of prompts from my home directory being on the printed pages:
So I'm going to go with it happens in my home dir.Code:me@localhost$~ (output of progs)
Any elaboration on why it would matter would be cool...
- 03-19-2008 #4
What I was thinking was that may be you have a symlink to /dev/printer (the printing device) in your executing dir and that some char (or char combination) from your terminal would be mapped to it. So a command like
would dump stuff from STDIN to your line printer. An ls -al in your dir would make this sure.Code:> p (p being the symlink)
- 03-19-2008 #5Just Joined!
- Join Date
- Nov 2005
- Posts
- 80
Kinda makes sense. But I would like to think i could recognize this problem as i'm pretty familiar with the dotfiles and links in my home dir. And i don't have write permissions to /dev/ files (though i will have to double check if i have write perm for printer). Regardless, it wouldn't send 100+ jobs at a time. No matter how much text gets redirected it would just be one job if im not mistaken. So I don't think its due to a sym link i don't know about.
But thanks alot for the suggestion. This is really driving me crazy.
A few things i should have made clear:
-This problem never happens when i leave the box on and unattended overnight or during the day. Only when im typing stuff in an x terminal.
-The 100+ jobs get sent to my printer all at once. Not incrementally.
-My prompt is included randomnly on the actual paper when these jobs print.
-A process shows up when this happens (and hogs 99% cpu). The 'ps aux' owner is user 'lp' and i can't kill it unless i am root, but i can use cups to cancel the job as a normal user. The execution looks somethng like "usb ://<my printer name><lots of crap>" when shown by 'ps aux'
Any other thoughts?
- 03-21-2008 #6Linux Engineer
- Join Date
- Feb 2005
- Posts
- 1,044
Yeah, use vi-style navigation!Any other thoughts?
- 03-22-2008 #7Just Joined!
- Join Date
- Nov 2005
- Posts
- 80
...Any other thoughts?Yeah, use vi-style navigation!
- 03-23-2008 #8Linux Engineer
- Join Date
- Feb 2005
- Posts
- 1,044
Not really - I don't like emacs so never bothered to learn the unintuitive myriad key combinations it uses. Would your shortcut be submitting all the files in your current directory to be printed, or is it really as absolutely random as your first post suggests?
- 03-24-2008 #9Just Joined!
- Join Date
- Nov 2005
- Posts
- 80
it was unintuitive at first, but now it's branded into my subconscious.
To answer your question the printed pages are not of the files in my home dir, its like the warning and info messages, like
when im running, say, firefox in the background and putzing around my terminal with many (Ctrl,alt + whatever)'s going on.Code:gtkWidget blah blah blah


Reply With Quote
