socat / ghostscript questions

James B. Byrne byrnejb at harte-lyne.ca
Tue Apr 20 16:47:00 UTC 2021



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 at 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



More information about the freebsd-questions mailing list