Are you looking for FAQ: what is netcat and how do I use it?
From: Jeff Liebermann <jeffl@comix.santa-cruz.ca.us> Newsgroups: comp.unix.sco.misc Subject: Re: Netcat problem? - repost Date: Sun, 20 Aug 2000 13:36:34 -0700 Message-ID: <uhf0qscrdf5diag6ikp76jn3qvttt2nioc@4ax.com> References: <m13QauO-000AmYC@egps.com> On Sun, 20 Aug 2000 19:37:28 GMT, Nachman Yaakov Ziskind <awacs@egps.com> wrote: >[reposting this b/c it doesn't show up in DejaNews. Also, now Jeff L. is >back :-)]
I was just about to leave for Doug's party, when your message appeared. If I'm late or miss something important, it's your fault. >3) Netcat gives the following results: >$ netcat -d 999 -h hp3 -p 9102 > >debugl = 999 >hostname = hp3 >port = 9102 >gethostbyname()=0x404340 >socket()=3 >sin.sin_addr.s_addr=0x2882b8d0 >connect()=-1 >Connect to port 9102 on hp3: Connection refused One of these days, I'll figure out what all that debug info means. However, the connect()=-1 is fairly obvious. Your print server was lonely while you were gone, and has decided to not accept any of your excuses as to why you were gone. My cat does the same thing. >even though I can happily telnet into the port and dump characters to each >printer. Ok. So, if you talk to it nicely, it will cooperate. My cat does the same thing. >In desperation, I switched the netcat symlink from pointing to: >[...] 71566 May 12 1999 netcat.coff >to point to: >[...] 174740 May 12 1999 netcat.elf >and now both netcat and the printing works.
You were using OSR5 with the COFF version? OSR5 wants the ELF version. COFF is for 3.2v4.x. As far as I know, both binaries are static linked. A change of binary flavour at this point is not a good idea. My cat doesn't like diet changes either. >And I can reproduce it. I.e., netcat.coff *still* doesn't work. And I checked >with a fresh copy from Jeff's webcite. It's a web pile, not webcite. You want me to miss Doug's party just to test the COFF version of netcat on OSR5? Surely you jest. However, you may have found a problem as I didn't build the COFF version. Some un-named culprit sent it to me since I had to remove my C compiler from my 3.2v4.2 system to regain some needed diskspace. I'll test it after forum and after I clean up the mess my cat is sure to leave because I'm gone. >(presumably I broke some binary that was dynamically linked in ...?) So, download a fresh copy. Perhaps the binary on my web pile is busted, corrupted, or trashed. I'll do a CRC comparison later. >What the hell? I'd explain, but there's not enough time to explain how to get there from here. Suffice to say that hell is in the general downward direction. I'm teaching the cat to type. Perhaps he can explain. -- Jeff Liebermann jeffl@comix.santa-cruz.ca.us 150 Felker St #D Santa Cruz CA 95060 831-421-6491 pager 831-429-1240 fax http://www.cruzio.com/~jeffl/sco/ SCO stuff
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.
Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.
Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.
We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.
Click here to add your comments
Don't miss responses! Subscribe to Comments by RSS or by Email
Click here to add your comments
If you want a picture to show with your comment, go get a Gravatar