help-bash
[Top][All Lists]
Advanced

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

Re: plz help with tcpserver


From: ikhxcsz7y xmbott
Subject: Re: plz help with tcpserver
Date: Mon, 26 Jul 2021 20:56:35 +0200

yes around so, however i got weird nonworking gawk results
i mailed misc@list.cr.yp.to ( tcpserver ) and the gnu help and bug gawk
lists from a previous similiar, they couldnt fix it, or say not so .. much
.. i dunno its not fixed

but see in tcpserver 0 1024 strace -fF -s 50 gawk -v RS='\n\n' 1
then on nc 0 1024
..getuid etc calls etc, preparing
then before sending the first newline the last lines are

ioctl(1, TCGETS, 0x7fffbe95cff0)        = -1 ENOTTY (Inappropriate ioctl
for device)
fstat(0, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
ioctl(0, TCGETS, 0x7fffbe95ced0)        = -1 ENOTTY (Inappropriate ioctl
for device)
fstat(0, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
read(0,

then entering the read values, but only on nc exit it printed something in
strace
hm ? the my question is who's bug is this to get it fixed, to make my
bhttpd work ..

read(0, "\n", 4096)                     = 1
read(0, "\n", 4096)                     = 1
fstat(1, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
read(0, "\n", 4096)                     = 1
read(0, "\n", 4096)                     = 1
read(0, "\n", 4096)                     = 1
read(0, "w\n", 4096)                    = 2
read(0, "\n", 4096)                     = 1
read(0, "\n", 4096)                     = 1
read(0, "\n", 4096)                     = 1
read(0, "\n", 4096)                     = 1
read(0, "", 4096)                       = 0
openat(AT_FDCWD, "/dev/null", O_RDWR)   = 3
dup2(3, 0)                              = 0
close(3)                                = 0
write(1, "\n\n\nw\n\n\n\n", 8)          = 8
exit_group(0)                           = ?
+++ exited with 0 +++

On Mon, Jul 26, 2021 at 8:41 PM Greg Wooledge <greg@wooledge.org> wrote:

> On Mon, Jul 26, 2021 at 08:27:53PM +0200, Alex fxmbsw7 Ratchev wrote:
> > i do tcpserver 0 1024 gawk -v RS=\\n\\n '{ print "ye" }'
> >
> > then nc 0 1024
> > and many newlines
> >
> > nowhere i see ye
> >
> > .. or at least write me you wont .. :/
>
>
> Stop asking me these questions.  I am not your personal web search engine.
> Ask the whole mailing list.
>
> unicorn:~$ tcpserver 0 1024 /usr/bin/printf 'ye\nye\n'
>
>
> unicorn:~$ telnet localhost 1024
> Trying ::1...
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> ye
> ye
> Connection closed by foreign host.
>
>
> Is that what you wanted?
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]