Hardware :: Printing Raw From A File?

Nov 3, 2010

I am in the process of writing a script to prints prerinting on different printers in a way that directly sends a raw file to the usb lp device file. Kind of like printing to a prn file in windows. Is there any way to accomplish this in linux (i.e. prepare the files before with a print driver and filter then to a raw send?

View 2 Replies


ADVERTISEMENT

General :: Printing From Bash Shell / Concatenate Files Into One File With File Names Included?

May 11, 2011

I am supposed to take some small files, and print them to a specific printer, such that the small files are concatenated into one file. The file name has to be included in the file that gets printed.

Should I be looking to concatenate the files into one file with the file names included, and then print them?

something like: -printfunction -printername < file*

View 7 Replies View Related

General :: Printing File Name , When Using Awk?

Jul 12, 2011

i am going throw all files in directory and want to print the files that having more than 1 "%" in their content...what should i exchange in BOLD?

for file in * ;
do awk -F'(%)' '{ t += (NF - 1) } END
{if (t>1) print $file ;}'
$file;done

View 4 Replies View Related

Ubuntu :: Printing To File Tweaks?

Sep 3, 2010

I'm doing a lot of print to file and selecting pdf. It is an awesome feature. But I'd like to add a location to the "Save in folder" drop down menu. What would be better is to add a location, and then make it the default location. It would also be awesome to change the default from .ps to .pdf. This would greatly speed up my save to file process.

View 2 Replies View Related

General :: Error In Printing A File?

Jun 7, 2011

I am trying to print a ps file through code using cupsPrintFile..The code is as follows:

Code:

#include <cups/cups.h>
#include<stdio.h>
int main()
{

[Code]....

View 5 Replies View Related

Programming :: Printf Is Printing To The File?

May 10, 2011

Id like to share with you a strange behavior I�ve been seen with the printf C language function running in Fedora.The code opens a file as showed:descString = fopen( strcat( stringName, txt), a+);There are also some printf functions in the code.However, instead of the printf functions to print their content at the screen, theyve been printing them in the file with the descString file descriptor.Have you ever seen something like that?To print something to the file I use the fprintf function. I didn't make a mistake to confuse printf with fprintf. I'm sure.

View 2 Replies View Related

Debian Multimedia :: Printing A Pdf File Fails?

May 23, 2011

System : Debian squeeze, Gnome, amd64Printer : Samsung ML-1640 SeriesDriver:Samsung ML-1640, SpliX V. 2.0.0Printer works, but printing a pdf file from evince fails ( nothing is printed )...http://localhost:631/jobs/ shows : "/usr/lib/cups/filter/pdftoraster failed

View 12 Replies View Related

Ubuntu :: Cups-pdf Printing No Extension On File?

Apr 24, 2010

I am running 10.04 beta2 and have installed cups-pdf printing. I can print to the PDF printer and it works fine saving the file to ~/PDF. It saves it with the PDF extension as expected. I am trying to save the file by default to a windows share. I changed the DEVICE URI line to smb://HOME/SERVER/PDF. When I print, the job shows up on the windows share but without a PDF extension

View 8 Replies View Related

Programming :: Printing A Specific Word Out Of A File?

Jan 6, 2011

so i have a file that has the following

file1.txt
ID1 age_11 dog_n3 parent_dog_n1
ID1 age_7 dog_n4 parent_dog_n3
ID1 dog_n5 age_4
ID1 dog_n6 age_4

[Code].....

As you can see i would like the output file to be just the dogs, not the otehr information. But because the information is mixed up how can i extract only the dogs? (i cant do and awk '{print }' because the dogs are found in colounm 2 or 3 or sometimes even 4.

View 9 Replies View Related

Programming :: Printing Text From An External File In C?

May 24, 2010

I was reading through the source code of adventure in the bsdgames package and I had noticed that most of the text is read from a file called glorkz. I'm wondering about what function/technique the author used to print from the file; I've been looking through the code for a while (particularly io.c) and I haven't been able to figure it out.

View 3 Replies View Related

Hardware :: Continuos Printing - Stop Ejecting The Paper After Printing Over?

Jul 28, 2010

We developed qt based application in linux. I wish to stop ejecting the paper after printing over.How to do it.

View 2 Replies View Related

Ubuntu :: Printing With Exact Size Photos And With Poor Auto Colour Printing But The Situation Remains Unchanged

May 31, 2010

I expected more from ubuntu 10.4 with regards to printing with exact size photos and with poor auto colour printing but the situation remains unchanged! for instance .. the photo size configurations for ubuntu/fspot/gimp and others are not compatible with my printers (HP and Brother) .. here in Europe a typical standard size photo (10x15inches or 150x100mm are not even on the Ubuntu listing? I have tried all listed possibilities including "custom" (which does not seem to ever work correctly?)and the result at best is photos with uneven boarders or at worse my printer goes a bit crazy with much wasted photo paper and expensive ink ...even photos selected for "no boarders" still produces photos with the self same uneven boarders.

I have tried pretty much everything over time following advice in this forum and including using HPlip and updating drivers required for my Brother printer but the root problem seemingly lies with the Ubunto photo size setup listing. Working with Ubuntu over the years I have found that it can do pretty much everything that Windows can do except for this dam ongoing photo quality and configuration problem.

View 9 Replies View Related

Ubuntu :: Edit The Ppd File - Full Page Printing ?

Sep 1, 2011

I would like to print full page on a HP Deskjet F4280 using any kind of software (GIMP for example).

I tried to edit the printer ppd file, turned hardware margins off in the print properties in GIMP, yet when I try to print an image 8.5 in wide on letter size paper, GIMP still leaves approx. 1/8in gap on the paper edge.

The printer hardware can do it: when I simply use the copy function it can print to the very edge of the paper.

Question: does anybody know how I need to edit the ppd file (or other config files) to convince GIMP (or other programs) to print using the full page?

View 4 Replies View Related

General :: Variables In Text File - How To Get Values When Printing Out

Apr 13, 2010

I'm doing some bash-scripting and want to be able to print some text (just plain text) files into the new bash-scripts, created within a loop. Here's a short example of what I do:

Code:
# main bash script #
#!/bin/bash
##Filename
variable1=10
for ((j=0;j<=40;j+=1))
do
## Create another bash-script
echo "#!/bin/bash" >> bash_script_$j
... some stuff...
cat file1.txt >> bash_script_$j
... some more stuff...
done
where the text file (file1.txt) I want to print in the the new bash script looks something like:

Code:
# file1.txt #
...some stuff...
logsave log some_program($variable1)
mv output_$j folder_$j/
... some more stuff...

I.e, the text file contains variables such as "$j", "$variable1" etc that are undefined. Doing the above works for creating new bash scripts (bash_script_1 - bash_script_40) but the variables are not determined. I would like, if possible, to somehow print the text in file1.txt into the new bash-scripts with the variables determined, i.e:

Code:
# bash_script_1 #
...some stuff...
logsave log some_program(10)
mv output_1 folder_1/
... some more stuff...

The text files I read are quite extensive so I would really prefer not having to paste them into the FOR-loop directly.

View 2 Replies View Related

Software :: Printing Specific Lines Of File Using Script

May 19, 2009

I have text file with say 1000 lines.And I want to display lines numbered 100, 203 and 297 using a script/ command.How can I do this ?I can print a particular line using:sed -n '100p' file1 (where file1 is input file).

View 6 Replies View Related

OpenSUSE Hardware :: Printing System Continuously Prints Same File?

Apr 1, 2010

I made a BIG mistake and tried to print a PDF document from Evince 2.28.2. Evince sends a garbage filled print job to the queue that results in nothing but garbage being printed. I noted the problem an tried to kill the print job but could not because it does not show up in the print queue. It appears that the printer sent an error back to the print system and the print system now continues to print the job forever - that is, anytime openSUSE is running, even after reboots.

Note that printing the test page works and that the printer also works fine with gedit and OpenOffice.

If I go to Control Center -> Printing then right click on the icon for the printer and click View Print Queue, the print queue is empty.

In YaST Control Center -> Printer -> Policies the "Specify error policy" is set to "abort and delete the job and proceed with the next job." The "Apply this error policy to all local printer configurations" checkbox was checked when this policy was set. If this is what should have ultimately killed the job it did not work.

how to stop the print system from trying to print this garbaged print job. It has been trying to print the same garbaged print job for the last five days!

View 7 Replies View Related

Networking :: Make PC Ping Each Other - File Sharing And Printing Setup

Jan 26, 2010

I have a Netopia 3000 Series Internet Gateway [URL] & windows 7(laptop) & ubuntu 9.10.
- My laptop connects to it wireless and my ubuntu via ethernet cable.
- I am trying to setup file sharing and printing. How do I go about in making them ping each other? the networking side.
I logged in the router & check and windows has ip 192.168.100 & ubuntu has 192168.1.2

View 2 Replies View Related

Debian Hardware :: Printing Error - Can't Copy Stdin To Temporary File

Jan 5, 2015

My printer has stopped working.

1. I am unsure if any system changes have occured. I am sure I must have changed something, but apparently did not document it.
2. Printer does work from other computers
3 Computer was originally wireless connected, but switched to USB. This had no affect. Well I can scan now so great.
4, Printer is HP 6500a.
5. Printer has worked from this computer before
6 This is from cups error log:

D [05/Jan/2015:11:47:48 -0500] [Job 147] Set job-printer-state-message to "Can't copy stdin to temporary file", current level=ERROR
D [05/Jan/2015:11:47:48 -0500] [Job 147] prnt/hpcups/HPCupsFilter.cpp 536: cupsRasterOpen failed, fd = 0

View 7 Replies View Related

Fedora Networking :: Network To Lan - For File Sharing - Printing And Internet Access

Dec 30, 2009

I have a wired lan at home with 2 XP boxes connecting to a router to a DSL modem. I want to network my laptop, running only fedora os, for file sharing, printing and internet access. I will be using the laptop probably exclusively for creating/maintaining a Drupal-based (LAMP) e-commerce site to replace our old one for our small family business.

View 4 Replies View Related

General :: Selecting A Font When Printing A Text File From The Command Line?

Jul 29, 2011

I don't understand why this is so difficult.In the old days, there was lpforms which allowed some formatting. CUPS did not see fit to implement this into it's lp package.cgi-...-cgi?lpforms+1In the old days, lpr allowed you to select a font in the command line with -1=fontname. CUPS did not see fit to implement this into it's lpr package.htmIn the old days, printers had fonts installed on them that you could access. Modern printers don't seem to have this. So now I still need to be able to select a font when I print certain text files from the command line but it seems this is impossible. I've been working with instances and lpoptions, which allows me to do a lot of other things I need like orientation and margins and even set the font size, but I still cannot choose a font other than the default.

View 2 Replies View Related

General :: Cups Spooler Quits Printing Large Print File?

Mar 22, 2010

I have installed centos 5 and can print small to medium lpr files using cups fine (1 to 20 pages), but when i tried to print a file of 95 pages the printer just stops, I have to power off the printer and turn it back on and it will start printing again. It looks like some data is lost in this process. It may print 20 pages and stop. When restarted it may print 20 or 40 or complete the report.I can print to the devicectly and it works fine. It is only when the large print jobs are run through the spooler.I have tried on different printers and the same results, that's what makes me think it is a spooler problem.

View 2 Replies View Related

Slackware :: Can't Print - "Unable To Open Image File For Printing!"

Jan 18, 2011

Since slackware 13.0 (upgraded to 13.1), I haven't been able to print anything. I can add printers no problem using the cups gui (or whatever). However any print I send to any printer fails because of:

"Unable to open image file for printing!"

I can post the whole error log if that helps, but I can't see much in it. I haven't been able to print for about 6 months, which is getting a bit annoying.

p.s, as a I lazy option I upgraded to the cups in -current, but that didn't help (although I don't think it was a very different version).

View 7 Replies View Related

Ubuntu :: Printing Using LP Or LPR?

Mar 15, 2011

I have a label printer connected to a windows machine and its shared. And other windows machines can print to this label printer. But I need to be able to print to it from the linux box using lp or lpr. I have been following this article on how to get the labels printing, but I am unable to have any luck whatsoever.

Here is where I am at:
bennett@ezyvet:~$ smbclient -L AECRECEPTION -U administrator
Enter administrator's password:
Domain=[VSG] OS=[Windows 7 Professional 7600] Server=[Windows 7 Professional 6.1] .....

I also have done this:
bennett@ezyvet:~$ sudo lpadmin -p AECLABEL -h 192.168.58.116 -i smb://AECRECEPTION/AECLABEL -P /home/bennett/drivers/zebra2844/zebra4.ppd
lpadmin: Unable to connect to server: Connection refused

The firewall on the windows machine has turned off. I can see 2 printers, cups cant find any more printers. It just says its searching for eternity. I believe the only reason why the 2 printers show up in cups is because they are network printers?

View 2 Replies View Related

Ubuntu :: Printing From The CLI?

Apr 24, 2011

I have a headless server running Lucid (10.4.2) connected to that printer is an HP 930C. I have cups running and am able to initiate print jobs over the network from my desktop workstations.

Wat I haven't figured out is how to print a textfile directly from the CLI Console.

I have an entry /dev/lp0 My printers name is HP_DeskJet_930C

View 1 Replies View Related

Fedora Hardware :: HP G85 Not Printing In F13

Jun 2, 2010

Acknowledges that it is there, and that it is the primary but wont print. SimpleScan works like a charm.

View 1 Replies View Related

OpenSUSE :: Printing From Opera 10.10 In 11.2

Feb 5, 2010

Anyone having trouble printing pages from opera 10.10 in opensuse 11.2.

View 5 Replies View Related

OpenSUSE :: Speeding Up Printing ?

May 20, 2010

opensuse v11.2 linux 2.6.31.12-0.2-desktop x86_64

We have a networked Kyocera cs-3050 printer. When I print something to it, the Print window hangs for about a minute while the printer process queries the printer. This would be acceptable if it did happen EVERY TIME I printed a document.

Is there some way to have the printer driver cache the information instead of asking for it every time?

View 9 Replies View Related

OpenSUSE :: Printing From Different Trays?

Jun 22, 2010

This question is about the usage of lpr and/or lp.

My printer has 3 trays: #1 is the manual feed, #2 contains paper for the first page of a letter and #3 contains blank paper for the rest of the document. Most letters should be printed using tray#2 for the first page and tray#3 for all subsequent pages of the same document.

It is easy to select a tray for the whole document. The command looks something like:

Code:
lpr -o media=A4 -o media=Upper -Plp document.ps

but for the desired effect I have to prepare the first page (normally with dvips), print that, then prepare the rest and print it separately. This is not very elegant, because the job of another user may be processed in between of the 2 steps. Is there a better way?

View 8 Replies View Related

OpenSUSE Network :: Get Printing Using IPP

Jul 20, 2011

I am trying to get network printing using IPP working, as per tutorial by Swerdna Linux Printer Sharing: Suse/openSUSE 10.x 11.x IPP Print Server for Linux & Windows Clients I used to have it working fine using openSUSE 11.1, then I upgraded to 11.4 and haven't been able to get it working since.

I can ping the server ok (ping 192.168.1.30) but cannot connect from web browser to [URL] it says "The server at 192.168.1.30 is taking too long to respond." This is the same from any workstation, Windows or Linux. The printer works fine locally on the server box. I noticed that Swerdna's tutorial (which I used successfully to setup this on 11.1) hasn't been updated for 11.2 upwards, I noticed that a couple of files that needed to be changed previously I don't even have in my current 11.4 version, ie /etc/cups/mime.convs and /etc/cups/mime.types. I'm wondering if these are replaced by something else now, and if that has any bearing on my problem.

View 1 Replies View Related

Ubuntu :: Can't Imagine Why Printing Is So Off?

May 2, 2010

I was running Ubuntu Karmic Koala in a Dell Optiplex 8200. I wasn't having any problems, but it was running a bit slow. To fix this, I loaded a new graphics card and loaded Lubuntu so I could use LXDE. LXDE worked fine, but the associations on PC Manager were broken, so I switched back to Gnome. Ever since then, I've had a few problems.

1) The desktop image is black and all the icons that should be there are gone. If I browse to the Desktop via terminal (or Nautilus) everything is still there. If I view the desktop setting via the desktop setting control, it's set there, too. However, when I shut down/log out, I briefly see the desktop I set, before all goes black.

2) Printing is now VERY slow. It takes about minutes per page. I assume there's some file I have to either edit or delete to restore the desktop appearance, but I can't imagine why printing is so off.

PS - I was going to add tags, but I can't seem to type any in - weird.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved