Getting the nc (netcat) command to work in Leopard's Terminal?

I cannot get the nc command to work in the Terminal. I type in a command and it just gives me the syntax for the command.
I have tried to do sudo su and it doesn't make it work either.
The strange thing is is that it worked fine for me on Tiger.
The command i was doing was "nc -vlp port."

MacBook Pro 2.0ghz, Mac OS X (10.5.3), First Gen (I think) MBP

Posted on Jun 29, 2008 12:09 AM

Reply
6 replies

Jun 29, 2008 7:38 AM in response to omgiamso1337

Some of the shell scripts have been changed/updated with Leopard, but the current man pages installed with the OS should also have been changed/updated. If there is a conflict, usually Apple's online Mac OS x Manual Pages reference will have the correct information. Netcat works for me - if you check the current nc man page, you will find that the "l" and "p" options cannot be used together.

Jun 29, 2008 2:37 PM in response to red_menace

Whoops, I think i double posted (I didn't see an edit button for my last post).
I just tested the command that you suggested, and it worked (i think, but it didn't say listening, it just was blank, so i believe it was working). I looked on the man pages and didn't see the -e function and I remember the "new" nc saying "illegal option -e." I was wondering how to send something over to another computer running nc, like a shell.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Getting the nc (netcat) command to work in Leopard's Terminal?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.