John:
got it.
I appreciate your taking some time for this.
This is another great example of why Open Source works!
Thanks indeed.
__________________________________________
Ranga Nathan / CSG
Systems Programmer - Specialist; Technical Services;
BAX Global Inc. Irvine-California
Tel: 714-442-7591 Fax: 714-442-2840
"McKown, John" <[EMAIL PROTECTED]>
06/16/2004 10:40 AM
To: "Linux on 390 Port" <[EMAIL PROTECTED]>
cc: <[EMAIL PROTECTED]>
Subject: Netcat for z/OS UNIX (was: RE: gcc binary for
OS/390 USS)
Well, the CPU at work actually went below 100% today. I tried compiling
it and it failed. No big shocker there! I had to add 5 source
statements, which basically "nop'ed" the IP_OPTIONS flag and excluded
two #include files which do not exist on z/OS. I used an "#ifdef
__HOS_MVS__". It then compiled and ran cleanly on my z/OS 1.4 system. I
then ftp'ed the executable to my test z/OS 1.4 system. I ran a short,
simple, test
PROD>nc -w 3 test.ip.address portnum <test.file
And on the TEST system:
TEST>nc -l -p portnum >test.file
Of course, replace "test.ip.address" with the correct IP address and
"portnum" with the port you are using.
test.file was a simple text file. It went across with no problem. I did
not even try to test all the included scripts! I don't know what will
happen between an EBCDIC and ASCII host, but I'd bet that the file would
remain in EBCDIC on the receiving end.
I compiled this program using both the z/OS 1.4 C compiler and the
OS/390 2.10 compiler (which comes with z/OS 1.4 - I don't have an OS/390
2.10 system any more).
I have attached the nc110s.pax.zip file to this email. I don't know if
the list will allow this or strip it off. Somebody will need to tell me
because I don't receive my own posts anymore.
There are three files:
nc110/netcat.c - my modified source
nc110/nc_zOS_1.4 - compiled with the z/OS 1.4 compiler
nc110/nc_os_390_2.10 - compiled with the OS/390 2.10 compiler.
Have fun - if the pax file is attached. ftp it into your z/OS UNIX
"home" directory and extract the files with:
pax -rf nc110.pax
It will create the nc110 subdirectory. Run the program from there or put
it somewhere on your PATH.
--
John McKown
Senior Systems Programmer
UICI Insurance Center
Information Technology
This message (including any attachments) contains confidential
information intended for a specific individual and purpose, and its'
content is protected by law. If you are not the intended recipient, you
should delete this message and are hereby notified that any disclosure,
copying, or distribution of this transmission, or taking any action
based on it, is strictly prohibited.
> -----Original Message-----
> From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On
> Behalf Of Fargusson.Alan
> Sent: Tuesday, June 15, 2004 10:18 AM
> To: [EMAIL PROTECTED]
> Subject: Re: gcc binary for OS/390 USS
>
>
> I was going to send you my round tuit, but I can't find it.
> Guess I need another one.
>
<< Attachment Removed : nc110s.pax.zip by Ranga Nathan >>
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390