Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ping from a cobol program

Status
Not open for further replies.

wossilat

Programmer
Mar 21, 2002
8
DE
Hello,
does anyone know if it's possible to send a ping from within a cobol program to see if a client is online?
Result must be come back to cobol program.

Thanks for your help.

regards

Ludger
 
OS used and version
COBOL Vendor and version

Supply this and we may give a better reply.

But answer is YES for almost all of the possible combinations of recent OSes and COBOL vendors/versions

Regards

Frederico Fonseca
SysSoft Integrated Ltd
 
morning,

sorry, i have jus forgotten to post the version.
We are using acucobol workbench, dont know the version yet but it is actual.
The program must run under windows (2000 and higher) and unix/linux.

Can anyone show me an example for the call ?

Regards

Ludger
 
For cross-platform ping capabilities, I can think of three approaches:

1. The new C$SOCKET interface from AcuCorp. I'm not sure whether this will work, because I don't have access to the newest level of AcuCOBOL that has this available. Also, I suspect this is TCP only and not UDP.

2. Write a C subroutine that performs the ping.

3. Call the ping program directly (C$SYSTEM).

Regards.

Glenn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top