LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-17-2002, 10:35 AM   #1
esael
Member
 
Registered: Jul 2002
Posts: 109

Rep: Reputation: 15
lpr with apsfilter


Hi,

I can't print with lpr and I realise my total directory and file name length is too long.

Is there any way to resolve this?

Esael
 
Old 10-17-2002, 10:59 AM   #2
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
http://jetblackz.freeservers.com/Con...ackware81.html

What did you type to print?
 
Old 10-21-2002, 09:51 AM   #3
esael
Member
 
Registered: Jul 2002
Posts: 109

Original Poster
Rep: Reputation: 15
lpr -Pprintername /directory/directory/directory/very_long_file_name

It worked when the list is about 50 characters but it failed when the list is longer than 60 chars. I don't know the precise point of failure.
 
Old 10-23-2002, 07:09 AM   #4
figadiablo
Member
 
Registered: Feb 2002
Location: Virginia USA
Distribution: Slackware, CentOS, Fedora
Posts: 342

Rep: Reputation: 30
Thats a nice page jetblackz, thankz.

Figa
 
Old 10-23-2002, 12:23 PM   #5
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
esael, Linux command line doesn't accept spaces. You can view the file with * wildcard, but if you try to vi my file.txt. You can't. Use a GUI like StarOffice to open and print.

Thanks, figadiablo
 
Old 10-23-2002, 12:49 PM   #6
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
OT

You can force spaces in the command by using either a \ in front of the
space or double quotes (") around the entire filename. . .

e.g.:

vi "/dir/directory with spaces/file name with spaces"

or

vi /dir/directory\ with\ spaces/file\ name\ with\ spaces
 
Old 10-24-2002, 04:23 AM   #7
esael
Member
 
Registered: Jul 2002
Posts: 109

Original Poster
Rep: Reputation: 15
My long filenamesuses underscore. It was working in Unix.
 
Old 10-24-2002, 07:20 AM   #8
figadiablo
Member
 
Registered: Feb 2002
Location: Virginia USA
Distribution: Slackware, CentOS, Fedora
Posts: 342

Rep: Reputation: 30
This migth be a dumb question, but I haven't found the answer, even after going through the documentation. How do I kill or stop a print job. I do a lpq -L to see all my jobs. But how do I kill them? I have a stalled job and its preventing me from using the printer

Figa
 
Old 10-24-2002, 07:28 AM   #9
0x0001
Member
 
Registered: Sep 2002
Distribution: Slackware 8.1
Posts: 84

Rep: Reputation: 15
short: lprm

long: look up the manpage of a tool you used, at the bottom under SEE ALSO there are is a list of programms related to the current tool, man lpq for example lists cancel, lp, lpr, lprm, lpstat.
By using the respective man pages you can easily find out what to use when.
 
Old 10-24-2002, 09:12 AM   #10
figadiablo
Member
 
Registered: Feb 2002
Location: Virginia USA
Distribution: Slackware, CentOS, Fedora
Posts: 342

Rep: Reputation: 30
Thanks you guys, I've been trying to set up my printer under Slack for some time. I've even tried apsfilter before. This time I was finally able to get it going.
Thanks againg.

Figa
 
  


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
Printing under Linux. Cups, Apsfilter, lpr ? Sonic_Traveler Linux - Hardware 4 10-03-2011 04:52 PM
confused... lpr/ lpr-cups shadow.blue Linux - Software 1 04-06-2004 05:15 PM
apsfilter help dokterneo Slackware 0 01-19-2004 04:43 PM
lpr & lpr-cups commands not working with CUPS trinbellwoods Debian 2 01-08-2004 08:25 AM
What does apsfilter do (or not)? Calcutec Linux - Software 1 09-14-2002 01:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:29 AM.

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