C exe redirection blank file

2006-05-05 Thread andyburgess
Hi there, I have been developing a system with the wonderful Cygwin and have encountered a problem today. A program I was developing on a development PC I copied over to the 'live' box (through network). This program produces two fopen'ed files written with fprintf. Summary of issue: * Suddenly I

Re: Serial port hangs unless I run Hyperterminal?

2006-01-24 Thread andyburgess
Thanks all for your replies - I looked into errno - will be useful for future issues. Thanks to Eric, found my problem was although Cygwin happy with using port labelled COM1 (and presumably picking up Windows settings thereof - hence their changing after Hyperterminal), it couldn't do the tcgetat

Re: Serial port hangs unless I run Hyperterminal?

2006-01-23 Thread andyburgess
Eric, Thanx for your quick reply! > Code snippets? OK - open port function following function called with serial = open_port("COM1"); - int open_port(char *port) { int fd = 0; fd = open(port, O_RDWR | O_NOCTTY ); return (fd); } ---

Serial port hangs unless I run Hyperterminal?

2006-01-23 Thread andyburgess
Cygwin1.dll - version 1005.18.0.0 (Build date 2005-07-02 20:30) Hi there, I've been using the superb Cygwin environment for a few months now and am very impressed with it! I'm getting an issue when I run my GNU C program. It's hanging on the write/read operation to a GSM modem attached to my CO