Re: lag while printing and serial redirect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

2016-12-13 22:13 GMT+01:00 Stas Sergeev <stsp@xxxxxxx>:

>> $_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
--
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Console]     [Linux Audio]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Camping]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Samba]     [Linux Media]     [Fedora Users]

  Powered by Linux