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

Re: [microblaze-uclinux] netcat - from busybox or network apps ?



Hi Ujwal !

Are you asking what is netcat, or what is my command ?

netcat is a tool for 'telnet', but way much better. it provides stuff like port scanner, port listening, connection, etc etc etc.

my command should :
the 1st - listen in the port 1234 UDP
the 2nd - listen in the localhost port 5060

Well, I tested netcat from busybox, seems that it have no UDP support :

# nc -u -l 1234
nc: illegal option -- u
BusyBox v1.00 (2006.06.08-10:06+0000) multi-call binary

Usage: nc [OPTIONS] [IP] [port]

Netcat opens a pipe to IP:port

Options:
        -l              listen mode, for inbound connects
        -p PORT         local port number
        -i SECS         delay interval m to exec after connect (dangerous!)

#


But, in the bottom end, looks like 'net apps' netcat works, just the command line is slightly different :


# nc 127.0.0.1 -l -u -p 5060
instead
# nc -l -u 5060 (wich is easier, but at least it works !!)

It wont work using 'localhost', it needs a IP number, and the IP must come first, otherwise it will shalt 'no such file' thing.



Ujwal <ujwal.mailinglist@xxxxxxxxx> escreveu:
Hi,

What does that netcat do?

Regards,
Ujwal

On 6/8/06, A. Arthur Mohr <adimbox-uclinux@xxxxxxxxxxxx > wrote:
Hi there !

Which netcat should I use : from busybox or from network applications ?

I ask because I used the one in net apps, and when I tried to run it, it said :

#nc -u -l 1234
"forward host lookup failed: no such file or directory"

#nc localhost 5060
"forward host lookup failed: no such file or directory"

I though the netcat in net apps should be the 'better' choice. I'm not sure now. After that I saw 'nc' in busybox, but had no time to use it ...

Or did I miss something ?

Regards
Arthur
__________________________________________________
Fale com seus amigos de graça com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/


__________________________________________________
Fale com seus amigos de graça com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/