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


ADVERTISEMENT

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

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

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

General :: Missing Printer Driver Error Message In Printing Troubleshooter

Apr 1, 2011

I am trying to install a HP deskjet 1000-J110a. I downloaded a driver package thing, and I guess I unpacked it, and I made it, and I thought I installed it. I am totally confused and my brain hurts. The printing troubleshooter is telling me: Missing Printer Driver

Printer 'Deskjet-1000-J110-series' requires the 'foomatic-rip-hplip' program but it is not currently installed. I found something that is the 'foomatic-rip-hplip', but what the heck do I do with it?

View 9 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

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 View Related

Ubuntu :: Unknown Error Printing With CUPS

Feb 17, 2011

I have Ubuntu LTS 10.04.2 x86-64 running with default Cups installed. Now I am trying to print on a Canon iRC1021i network printer using a x64 PPD file. Trying to print a test page delivers a "server-error-internal-error".

After this I ran the debugging mode which delivered the troubleshooting.zip file.

View 8 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

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

Fedora :: Cups 'Error Printing Too Many Failed Attempts'

Jun 25, 2009

I googled this, to no avail. I've restarted cups, to no avail.This is a Networked Printer, but i have little doubt that can be ruled out as an issue.If i want to print an Image or Plain Text file, i get this error; if i print with OpenOffice, i do NOT get this error and it prints fine.I have also gotten a similar error, like "permission denied" or something, but i cannot recall exactly what it said, and cannot seem to recreate it at the moment.I have been getting this for quite some time now (months), but never found out why. Any ideas?

View 14 Replies View Related

Fedora :: Printing With F12 - Printer Stops After Generic Error

Apr 28, 2010

I've recently decided to migrate the infrastructure in my workplace from ubuntu to fedora, every thing except the printers went perfectly. When I try to print as an user It just throws an generic error and stops, as a root it doesn't even show the error.

This is the debug log:
Code:
D [28/Apr/2010:04:22:03 +0200] cupsdSetBusyState: Dirty files
D [28/Apr/2010:04:22:03 +0200] cupsdReadClient: 12 POST / HTTP/1.1
D [28/Apr/2010:04:22:03 +0200] cupsdSetBusyState: Active clients and dirty files
D [28/Apr/2010:04:22:03 +0200] cupsdAuthorize: No authentication data provided.
D [28/Apr/2010:04:22:03 +0200] cupsdReadClient: 12 1.1 Get-Jobs 1
D [28/Apr/2010:04:22:03 +0200] Get-Jobs ipp://localhost/printers/ .....

It worked fine in debian and ubuntu, so we can assume that the drivers are ok, any ideas?

View 5 Replies View Related

General :: Rsync Error: IO Error Encountered - Skipping File Deletion?

Aug 21, 2009

I am trying to use rsync to keep 2 machines in sync. I get the following error sometimes. If I rerun the rsync it usually works.

IO error encountered - skipping file deletion

View 1 Replies View Related

General :: Error Occurred While Installing GRUB - Error 15: File Not Found

Aug 11, 2010

I am having a problem installing SLES11 on a new server. It goes fine through the setup until it gets to GRUB, it gets me the following error message: Error occurred while installing GRUB

[code]...

I cant continue the installation without this

View 5 Replies View Related

General :: Broken Dual Boot - Xp / Ub - Error: Error File Not Found - Grub Rescue

May 21, 2011

Ubuntu 9.10 was set up to handle the booting selection - previously I thought it was xp but Ubuntu 9.10 "did" it. The system started out as a xp / ubuntu 9.10 dual boot on a 400gb drive. xp has 210gb, ub has 80 and their is a 100gb shared storage. Xp was installed first and then I followed a guide over at linuxconfig.org to get ub installed so that I could select which OS was wanted at boot. Ubuntu manages the boot up menu (Went back to look at my notes from the original setup) The owner tried to update to ub 11.04 and afterall was said and done the machine now boots to the message

error file not found grub rescue I can't say if 11.04 was properly installed or not. Ask whatever you like and I'll give the best answer I can. I think the xp install is okay but I can't say for certain as I don't know how to boot it outside the bootmanager at startup. Data has been saved so if I have to blow it all away and start over I can but I'm hoping I won't have to.

View 29 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

General :: 6.13 GMP-5.0.0 LFS Make Error - Cannot Open Shared Object File: No Such File Or Directory

Jun 10, 2010

I'm currently stuck at 6.13 GMP-5.0.0 of the LFS installation. After running make, I receive the following:

error while loading shared libraries: libbfd-2.20.so: cannot open shared object file: No such file or directory
make[2]: *** [libmpn.la] Error 127
make[2]: Leaving directory `/sources/gmp-5.0.0/mpn'

[code]....

View 5 Replies View Related

General :: Open Local File Error When Creating File Descriptor?

Sep 14, 2009

error message when I ran my program that I couldn't open my local file. I have two files first one is called client, second one is called server I am using named pipes to sent a message from client to the other file called server in client I used mknod() to create the two named pipes,one for read,one for write and created new thread in client using fork() spawned a child process that executed the server file both named pipes are opened the client file got the message from the user and sent it through the named pipes to the server file when the server receives the message , it needs to verfify it is correct in the server file, a local file descriptor is created to read and send this verifing message when it is not correct but I am getting an OPEN() error when I tried to open this shared local array buff and attach it to a file descriptor where the message is kept why do I get this error in server file

int main()
{
/*both named pipes are open*/
rfd=open(IFIO1,0);
wfd=open(IFIO2,1);

[code]....

View 1 Replies View Related

General :: Error - No Such File Or Dir. Read The 'readme' File But Cannot Configure

May 23, 2011

i'm new to linux and i am running ubuntu 11.04.i'm trying to install wine. i downloaded the binary files and extracted them. i tried running the command './configure' and got a error saying :no such file or dir. i read the 'readme' file but cannot configure.

View 3 Replies View Related

General :: Vsftp Cannot Upload File / Error 553 Cannot Create The File

Jul 26, 2010

I am testing my ftp server configuration.Anonymous download works , however anonymous upload does not.I am getting the following error message from both Windows and Linux 5.4clients : 553 cannot create the file.And i am running Fedore 12.

View 3 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

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

General :: Wget File And Getting Error 404 File Not Found?

Mar 2, 2011

when i wget aro2220.com it displays
--2011-03-02 16:35:58-- url... 127.0.1.1
Connecting to aro2220.com|127.0.1.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 177 [text/html]
Saving to: 'index.html'
100%
2011-03-02 16:35:58 (12.4 MB/s) - 'index.html' saved [177/177]

However, when I look into the file it is actually blank saying something like "It works! This is the default web page for this server" which can't be correct since that is not what Aro2220.com actually displays.

Furthermore, when I try to wget files I've put on the server for myself it returns a 404, file not found.

View 3 Replies View Related







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