unhd (Jonathan W Miner) (10/11/90)
Here is a quick summary of my problem: I want to get my PC to call the campus mainframe from time to time to check my electronic mail. I am having problems communicating with my modem. Here is my code: fp = fopen("com1","r+"); /* open for read & write */ fprintf("atd0000000\n"); /* send dial sequence */ while (fgetc(fp) != 'T'); /* Wait for connection */ That dials fine, but if I try to read the modem's result codes I never get them. I would like to set up a loop to wait until the modem responds with "CONNECT", and then at other points to respond to prompts from the mainframe. Any suggestions? Please E-MAIL, since being an undergrad I don't allways have time to read the net. I'll post a summary of solutions. --------------------------------------------------------------------- Jonathan Miner | I don't, and will not, speak jwm775@unhd.unh.edu | for UNH. They, in turn, better (603)868-3416 (I'm never home) | not speak for me! ---------------------------------------------------------------------