Date: Tue, 20 Apr 2021 12:46:52 -0400 From: "James B. Byrne" <byrnejb@harte-lyne.ca> To: "Arthur Chance" <freebsd@qeng-ho.org> Cc: "Paul Procacci" <pprocacci@gmail.com>, "FreeBSD Questions" <freebsd-questions@freebsd.org> Subject: Re: socat / ghostscript questions Message-ID: <05c982428fa6412209d78e432afab4a1.squirrel@webmail.harte-lyne.ca> In-Reply-To: <2ea846ea-65ad-e9ea-9400-2708271039f4@qeng-ho.org> References: <a57616c8b3cb377786621d3410355793.squirrel@webmail.harte-lyne.ca> <CAFbbPugodkPJm1mcGDuVO1kMVrhnWbwazA4vxrQnE0eijeLO3A@mail.gmail.com> <2ea846ea-65ad-e9ea-9400-2708271039f4@qeng-ho.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, April 20, 2021 12:23, Arthur Chance wrote: > On 20/04/2021 17:17, Paul Procacci wrote: >> The hang is most likely because an EOF doesn't get trasmitted over the wire. >> Adding a timeout I believe should fix the problem. >> >> nc -w 1 [addr] [port] < filename.txt > > Better to use the -N flag. > > -N shutdown(2) the network socket after EOF on the input. Some > servers require this to finish their work. > That worked for me. Thanks. $ enscript -p - t2.txt | nc -N 192.168.216.41 9100 [ 1 page * 1 copy ] left in - 1 line was wrapped $ -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Unencrypted messages have no legal claim to privacy Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?05c982428fa6412209d78e432afab4a1.squirrel>