APS2FILE(1)
π APS2FILE(1) β bestie's guide to printing straight to a file π
okay so. you know apsfilter(1)? this is its little sibling, aps2file, living in the General Commands Manual section (section 1, commands, iykyk). it does one (1) thing and it does it gorgeously: it takes the printer data that apsfilter would normally hand to a spooler and just... drops it into whatever file you want instead. no spooler, no queue, no drama. β¨
πΈ NAME πΈ
aps2file β printing to a file via apsfilter
π¦ SYNOPSIS π¦
aps2file [-D] [-Pqueue] [-Zoptions] [-ooutput] [input]
aps2file [-h]
π DESCRIPTION π
so like, with aps2file you can direct the printer data generated by apsfilter(1) into an arbitrary file, without the use of a spooler. that's it, that's the vibe. π
β¨ OPTIONS β¨
-hβ show help screen π-Dβ enable debug mode π₯-Pqueueβ select a printer queue (different from the default one) π¨οΈ-Zoptionsβ use apsfilter command line options (comma-separated list) π-ooutputβ direct data stream to output (default:stdout) π§inputβ read data from input (default:stdin) π₯
not me about to tell you the most important part: unlike printing with lpr(1), you can only use one input file at a time. one. just one. that's the rule, bestie, don't fight it. π
okay but here's the part where aps2file becomes your main character:
using aps2file is also the recommended way to create a debugging log of a failed printing attempt. if you include the -D flag, the apsfilter shell script will log every command and print it to stderr. so to save the output for inclusion into a bug report, you should therefore use a command of the sort:
aps2file -D -o /dev/null [-P...] [-Z...] [input] 2> log.txt
slay. that's the one you screenshot and keep. πΈ
π NOTES π
aps2file only works correctly with entries in /etc/printcap that have been created by /usr/share/apsfilter/SETUP. no cap, that's a hard requirement. π
π FILES π
/etc/printcapβ printer capability data base/usr/share/apsfilter/bin/apsfilterβ apsfilter script
π SEE ALSO π
apsfilter(1), apsfilter-bug(1), apspreview(1), apsfilterrc(5), printcap(5)
π BUGS π
see the apsfilter software center β http://www.apsfilter.org/ β for new versions, bugfixes and known bugs. β
please use the new tool apsfilter-bug(1) to release bug- or problem reports. it automatically presents you a form in an editor window which asks you some standard questions. if you save and quit the editor session, then this report is sent automatically via e-mail to the proper apsfilter mailinglist. π«Ά
if apsfilter fails to print something or prints it in a way you wouldn't expect and you want to report an apsfilter error then please save the debugging output of one print session using the new aps2file(1) utility by typing:
aps2file -D -Z options file > /dev/null 2> file.debug
and including the debugging output in the file file.debug into the edit session of the apsfilter-bug utility, so that it is included into the mail to the apsfilter mailinglist. π§
please note that you need to run/bin/sh(Bourne Shell),bashor a compatible shell, so that the above mentioned output redirection works. under C-shell (/bin/csh) ortcshit wouldn't work. if you don't know, then simply make sure you use the Bourne shell by typing/bin/shorbash, then you should have no problems with redirection ofstdoutandstderr(> /dev/null 2> file.debug). π (yes the original says "would't" and yes we're keeping the energy, but the redirection advice is real, do not skip it.)
π§ DOCUMENTATION π§
see official apsfilter homepage
http://www.apsfilter.org/handbook.htmlβ Apsfilter Handbook including the Frequently Asked Questions (FAQ)
π USER FORUM π
please send questions to the official apsfilter help channel apsfilter-help@apsfilter.org. the above section BUGS and the file HOWTO-BUGREPORTS tells you how to report bugs. if you want to know how to troubleshoot your apsfilter installation, please read the manpage aps2file(1) and apsfilter-bug(1) as well as the Apsfilter Handbook carefully. πΈ
π HISTORY π
the aps2file manpage has been written by Michael LoΓin <phallobst@web.de> and first appeared in apsfilter V 7.1.0. iconic behavior honestly. π
and that's the whole page, bestie!! this one's from Debian, dated Dec 19, 2001, and yeah it's page APS2FILE(1) of the manual β go forth and redirect your little heart out πβ¨π¦
π¦ where this page comes from
- debian bookworm: apsfilter 7.2.6-3
- debian trixie: apsfilter 7.2.6-5
- ubuntu jammy: apsfilter 7.2.6-2
- ubuntu noble: apsfilter 7.2.6-3
- ubuntu questing: apsfilter 7.2.6-5
- ubuntu resolute: apsfilter 7.2.6-6
- ubuntu stonking: apsfilter 7.2.6-7
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms