On 25 Nov 2001, IBMackey wrote:
> Made adjustments and gave it a try:
>
> Still getting the following message:
>
> Status Information:
> sending job 'ibum@debian+486' to cat-to@localhost
> connecting to 'localhost', attempt 1
> connected to 'localhost'
> requesting printer cat-to@localhost
> error 'LINK_TRANSFER_FAIL' sending str '^Bcat-to' to cat-to@localhost
> job 'ibum@debian+486' transfer to cat-to@localhost failed
>
> Maybe I'm on the wrong track. Perhaps I can put something in the
> printcap to print to file.
You could. I don't know how.
Now that i look at it again, the use of "lpr" is coded in global.conf.
(search for it with locate)
I was getting confused since I don't have a printer here but test every
now and then with /usr/local/bin/lpr:
#!/bin/sh
cat $2
You could write your own lpr script which calls the real lpr is the -P
option ($1) is not "cat-to",
This is how dosemu printing works: it appends to a temporary file and then
flushes that at intervals using e.g.
system("lpr -Plp /home/enbeo/.dosemu/tmp/lptx5dtLU")
where only the lp after -P is configurable in dosemu.conf and replaced by
cat-to in your case.
I would use popen(3) instead, but it just isn't implemented that way.
Bart
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html