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

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

 



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?

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).

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

Regards,
Bryn.

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