Menu

#19 jetpipe patch

open
nobody
None
5
2018-06-20
2018-06-20
No

Hello.
I'm using LTSP on >20 thin clients.
If printer was disconnected before or at printing then jetpipe process is closed. I write some patch to /usr/sbin/jetpipe. added lines starting with + (dont forget to delete "+" simbol)

import getopt
+import time

class Redirector:
def init(self, devicename, socket):
self.socket = socket

  • while not os.path.exists(devicename):
  • time.sleep(5)

After adding this lines script waiting connecting usb printer before printing and do not closing on line
self.device = open(devicename, 'wb')

Oleg Samoilov

Discussion


Log in to post a comment.