Re: lag while printing and serial redirect

Jakub Klawiter <[email protected]>
Newsgroups org.kernel.vger.linux-msdos
Message-ID <CAOpyoqbWfKBDA7_ExBShnuL0Rsfj=BCx4ttEXpuw_neeN6DTVg@mail.gmail.com>
Hello!

2016-12-13 22:13 GMT+01:00 Stas Sergeev <[email protected]>:

>> $_lpt1 = "lpr -l"
>> $_printer_timeout = (10)
> So why dont you reduce the timeout then?
Hmm… i was sure that timeout is about something else rather about
existance / being ready to print… i've changed it to 5 it's better i
think. Tried also 1 but the print was corrupted this way :(


> Yes, but not as simple. You need to establish the pty link
> with 'socat' program. But this feature is quite simple to add.
Thank you very much!

For future users what I did is:

$ cat run-raporty.sh
#!/bin/bash

socat -d -d -u pty,group=dialout,mode=660,link=/tmp/ttyCOM1,raw,echo=0
create:/tmp/ttyCOM1.txt &
SOCAT_PID=$!

dosemu -X -f "/home/cartoon/skrypty/dosemu-raporty.conf"  -E r.bat

kill -9 $SOCAT_PID
rm /tmp/ttyCOM1


and it's working just as I like!!!!11 Once again thank you for the HINT! :)


-- 
Pozdrawiam, Jakub.
Milion osób dziennie pobiera Firefoksa... pobierz i Ty! firefox.pl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.