🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #359

Problems using exec to run a program that accesses modem

#359
From: Gregory Youngblood
Date: Mon, 10 Aug 1992 15:30
37 lines
2362 bytes
 
Thanks to everyone's help I've gotten my program to read paramters given 
from the command line and be able to run programs (exec) and read the 
errorlevel returned by the program upon termination.  It all works fine..for 
the most part.

My program is a front end that calls up another specialized program that 
accesses the modem, dials a system (via script file) and collects/sends 
data, and hangs up.  It accesses the modem fine, and even connects mostly, 
but sometimes it won't connect, and when it does connect the data coming oer 
the modem is garbage.  It appears that my program, running the other 
program, causes problems with the communications...  

I'm working on it as best I can, narrowing things down, for instance, it 
will work if I call t manually from the command line (the same program that 
the pascal exec uses), and no garbage, all is fine, but when running from 
within pascal, garbage.

Has anyone seen anything like this before?  Any advice?  The thing that has 
my stumped is that the AT commands and the modem's responses all work fine, 
the problem starts when it tries to connect of after it does connect.

Thanks in advance...

Greg

__________________________________________________________________________
!  Gregory S. Youngblood   !   The opinions expressed above are my own.  !
!  TCS Consulting Services !   PLEASE USE THE TFSQUAD.MN.ORG ADDRESS AS I!
!__________________________!   ONLY HAVE EMAIL IN MN AND NO NEWS.  :(    !
!  42... The only answer.  !_____________________________________________!
!________________________________________________________________________!
! { zeta@yngbld.gwinnett.com    (GA) ..!emory!gwinnett.com!yngbld!zeta } !
!  zeta@yngbld.tfsquad.mn.org   (MN)      ..!tfsquad.mn.org!yngbld!zeta  !
! {                             (GA)       ..!emory!cowpas!yngbld!zeta } !
!________________________________________________________________________!
Technical Details
Message-ID: <V6waPB1w164w@yngbld.tfsquad.mn.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!gatech!emory!cowpas!yngbld!zeta

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!gatech!emory!cowpas!yngbld!zeta
From: zeta@yngbld.tfsquad.mn.org (Gregory Youngblood)
Newsgroups: comp.os.msdos.programmer,comp.lang.pascal
Subject: Problems using exec to run a program that accesses modem
Message-ID: <V6waPB1w164w@yngbld.tfsquad.mn.org>
Date: 10 Aug 92 15:30:42 GMT
Organization: TCS Consulting Services, Peachtree City, GA
Lines: 37