sshd, native console apps

David Byron DByron@everdreamcorp.com
Mon Jun 16 22:20:00 GMT 2003


I'm still struggling with getting a Visual-Studio-built console app to
output things to the console via an ssh session.  I've attached cygcheck -s
-v -r output again since I've started a new thread.

I was able to get my program to output via the console, but I had to turn
off buffering to do it.  Not sure if this is obvious.

I added

setbuf(stdout,NULL);

to the beginning of the program....

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sshd\Parameters\Environ
ment has an entry for CYGWIN, but the value is empty.

Without turning off buffering, I don't see any output via an ssh localhost
session until my program terminates.  Without ssh, and without the call to
setbuf, I see output normally....

I'm looking for suggestions to get "normal" output via without the setbuf
call.  Any ideas?

Thanks again for your help.  Is there any more information I can provide to
help figure this out?

-DB
--
David Byron                   dbyron@everdream.com
Everdream                     http://www.everdream.com
6591 Dumbarton Circle         voice:(510)818-5550
Fremont, CA  94555            fax:(510)818-5510

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20030616/601b47a4/attachment.txt>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list