Mail Archives: cygwin/2005/11/23/16:59:50
I have use tcsh scripts run from a Cygwin window to start X-windows. I had
been using lines like:
#!/bintcsh -f
xterm -j -sb -bg white -fg darkblue -cr green -ms magenta -bd red -geometry 80x84-0+0 -name right >>& /tmp/log.xwin &
With cygwin1-20051117.dll I was now also getting additional DOS windows.
I found that by using
xterm -j -sb -bg white -fg darkblue -cr green -ms magenta -bd red -geometry 80x84-0+0 -name right &
the DOS windows no longer pop up.
I also isolated the popen() problem somewhat. Those popen()'s used
for file I/O still seem fine when using `gcc -mno-cygwin`, but the
popen()'s that fail are like:
sprintf (utc_comm, "%s", "date -u +%Y%m%d");
if ((ptr_comm = popen (utc_comm, "r")) == NULL) {
// ...
}
pclose (ptr_comm);
I guess the use of `date` is like trying to write to STDOUT which
presents some problems when using `gcc -mno-cygwin`.
Thanks.
Lester
On Tue, Nov 22, 2005 at 10:43:48PM -0500, Christopher Faylor wrote:
: Date: Tue, 22 Nov 2005 22:43:48 -0500
: From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
: To: cygwin AT cygwin DOT com
: Subject: Re: P.S. cygheap base mismatch
: Reply-To: cygwin AT cygwin DOT com
:
: On Tue, Nov 22, 2005 at 07:27:03PM -0800, Lester Ingber wrote:
: >Yes, I just put in cygwin1-20051117.dll.
: >
: >The cygheap problem does not seem to be present, and I'm able to start
: >xterm windows. A quirk though: Each xterm window also brings up a
: >separate DOS window, and thexterm window is killed if I kill the DOS
: >window?
:
: How are you starting the xterms? Via run? From a shortcut? From
: another xterm?
:
: cgf
--
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/
- Raw text -