Re: To telnet or to netcat... that's the question

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

 



On Fri, 2012-08-31 at 14:14 +0100, Bryn M. Reeves wrote:
> On 08/31/2012 01:41 PM, NOSpaze wrote:
> > But if I use nc and do...
> > 
> >         # nc 127.0.0.1 5038 << EOF
> >         > Action: Login
> >         > ActionID: 1
> >         > Username: youwanna
> >         > Secret: uwanna
> >         > 
> >         > EOF
> >         Asterisk Call Manager/1.0
> 
> Does the behaviour differ if you type or paste the lines in and then hit
> Ctrl-D (or your keybinding for EOF) rather than use a shell here document?

No. Even when I slowly wrote it.

> I think this might cause nc to send one big packet with all the lines
> which might not be what asterisk expects. I'd also expect telnet to turn
> of nagling on the socket (so data is sent immediately rather than
> buffering). I think nc doesn't do that although it does provide a
> configurable send/receive delay interval (-i).

I used big delays. No difference.

> Failing that I would try a tethereal/tcpdump to see what's different in
> the data going over the wire.

Already tried, tcpdump -X. The process is completely different (telnet
is interactive, nc don't), and I dont' get which is the precise problem.
I've already used nc with asterisk, and worked fine. Maybe is my
asterisk version...

Thanks!

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux