LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-14-2002, 11:25 AM   #1
esael
Member
 
Registered: Jul 2002
Posts: 109

Rep: Reputation: 15
Cannot print files with long filenames


Hi,

I got a problem printing files with long filenames and that includes the
directory names. It appears that the total filename and directory names
cannot be more than about 50 characters.

I'm sending .prn files that are converted by windows driver.

When I shorten the filename or directories, I can get it to print.
However, when I use the original filename, it can't.

I did a lpq and this is what I see:

Queue: 1 printable job
Server: pid 2299 active
Unspooler: pid 2300 active
Status: sending control file 'cfA298swan.sgx.bln' to raw@15.1.8.50 at 18:04
....
Waiting connection from 15.1.8.47 lpd Service.

I'm using apsfilter and printing to a network printer and using Slack8.1


Anyone can help? Please......


Esael
 
Old 11-14-2002, 03:53 PM   #2
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Can you give us an example of what will and what won't print? Short and long filename for the same file, I mean.

-K.
 
Old 11-15-2002, 02:29 AM   #3
esael
Member
 
Registered: Jul 2002
Posts: 109

Original Poster
Rep: Reputation: 15
Ok,

For example,

lpr -Pprinter1 /usr/Printfiles/a.prn - this prints

when I rename to aaaaa.....50a...aaa.prn. It doesn't print.

Before I rename to a.prn, the printfile name is

cad_normal_plain_a4.prn

It wouldn't work if I do this

lpr -Pprinter1 /usr/dircectory/directory/directory/directory/a.prn

After doing experiments, it appears that lpr cannot support too many character after the -P so that includes printername, directories and filenames. It is about 60-70 characters.

This is important for me because I'm doing tests and there are many files to print so it is important to have long filenames that differentiates the files. Please help. THanks

Esael
 
Old 11-15-2002, 08:17 AM   #4
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
To be honest, I have no idea what the limit is, but I did find references to limits of 30 or so characters in other operating systems that implement the LPD protocol.

Apparently, there IS a limit however.

-K.
 
Old 11-15-2002, 08:38 AM   #5
esael
Member
 
Registered: Jul 2002
Posts: 109

Original Poster
Rep: Reputation: 15
Is there anyway to workaround this problem or change another protocol?
 
Old 11-15-2002, 09:02 AM   #6
esael
Member
 
Registered: Jul 2002
Posts: 109

Original Poster
Rep: Reputation: 15
Is there anyway to workaround this problem or change another protocol?
 
Old 11-15-2002, 09:48 AM   #7
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
I really don't know. You may want to surf over to http://www.linuxprinting.org and maybe even try to contact the folks over there and describe your problem to them.

-K
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba won't view long filenames mjtice Linux - Networking 1 04-15-2005 09:03 AM
Can't see long filenames starionwolf Linux - Newbie 5 11-12-2004 03:13 PM
Can't Display Long Win32 Filenames jpbarto Linux - Hardware 4 03-07-2004 09:25 PM
mounting cdroms with long filenames tweakness Linux - Hardware 1 09-12-2003 03:09 AM
Long filenames in OpenOffice Trying to Learn Linux - Newbie 3 05-22-2003 12:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration