Thanks Marcus that was the problem. It seemed as if I misplaced the sscanf() that was taking out the \r\n from the incoming data. But it was in there! Thanks for the help.

"Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum" <10353@lyskom.lysator.liu.se> wrote:
What I mean is: Print the contents of sCommand (using %O) to check
that it really contains "q", "qui", etc. If you for example have a
newline or something in it things will of course not work (since
e.g. "qu\n" is not a prefix of "quit").

/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)


Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes