Error when using -kill and -info on non standard port on Windows

0 Likes

Problem:

When trying to kill acuxdbcs with the batch file acuxdbcs.bat on a non-default port.  The message displays:

C:\Program Files\Acucorp\Acucbl800\AcuGT\bin>acuxdbcs -kill -n 20111

Sending 'vtxnetd suicide request' to '-n'. ERROR: HOSTNOTFOUND: Host '-n' not found, gethostbyname returned 11004

Sending 'vtxnetd suicide request' to '20111'. ERROR: SERVNOTFOUND: Service/Protocol 'vtxnet/tcp' not found (errno: 0)

Sending 'vtxnetd suicide request' to 'jeeves'. ERROR: SERVNOTFOUND: Service/Protocol 'vtxnet/tcp' not found (errno: 0)

The same is true when attempting to use -info on a non-default port.  The following message displays:

C:\Program Files\Acucorp\Acucbl800\AcuGT\bin>acuxdbcs -info -n 20111

Pinging '-n'....

SORRY: HOSTNOTFOUND: Host '-n' not found, gethostbyname returned 11004

Pinging '20111'....

SORRY: SERVNOTFOUND: Service/Protocol 'vtxnet/tcp' not found (errno: 0)

Pinging 'jeeves'....

SORRY: SERVNOTFOUND: Service/Protocol 'vtxnet/tcp' not found (errno: 0)

Resolution:

Use the attached acuxdbcs.bat files that has the modification below added.

C:\Program Files\Acucorp\Acucbl800\AcuGT\bin>

:info_port

shift

set XDBC_PORT=-n %1

shift

goto process_info

SHOULD READ:

:info_port

shift

set XDBC_PORT=-p%1

shift

goto process_info

_____________________

:kill_port

shift

set XDBC_PORT=-n %1

shift

goto process_kill

SHOULD READ:

:kill_port

shift

set XDBC_PORT=-p%1

shift

goto process_kill

Old KB# 2837
Comment List
Related
Recommended