TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Rob Landley
from: andrew graham
date: 1995-03-14 13:12:36
subject: Calling CEXYZ/2...

Hello Rob!

11 Mar 95 16:59, Rob Landley wrote to Gary Chambers:

 >> I'm trying to call CEXYZ2.EXE from a program I've written
 >> (using spawnl()). Even with the correct parameters passed, I
 >> still receive a NO CARRIER message. However, when I shell to
 >> DOS from Max/2, I can very successfully perform the transfer
 >> (from the command line).

Assuming cmdline is an array of characters and RecvThreadID is a TID you're
running to get stuff from the modem, call CEXY2 like this:

   sprintf(cmdline,
        "xyzbatch.cmd KNOCK.LOG /L19200 /B14400 /P%d /Rz",
        PortHandle);

   DosSuspendThread(RecvThreadID);
   system(cmdline);
   DosResumeThread(RecvThreadID);

- xyzbatch.cmd is the batchfile George Hatchew includes in the XZY2-100.
  archive.

- make sure you're passing a warm port handle to the ftp! A common error
  is to provide a COM? designation or DOS-style port number. No good!
  you need the port handle you got when you opened the device with
  DosOpen.

- make sure you suspend the thread you're using to collect
  characters from the modem. Else, the ftp won't be able to
  get them, will it?

- don't forget to restart the receive thread!

:-)
...awg


--- GoldED/2 2.42.G0615
* Origin: Code Outside/2 Day (705) 458 0528 (1:252/504)
SEEN-BY: 105/42 620/243 624/50 711/401 409 410 413 430 807 808 809 934 955
SEEN-BY: 712/407 515 628 704 713/888 800/1 7877/2809
@PATH: 252/504 500 101 3615/50 396/1 270/101 105/103 42 712/515 711/808 809
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.