Re: Short gdb question.

2012-05-04 Thread Reid Thompson
On Fri, 2012-05-04 at 00:45 -0700, eric_justin_al...@cfl.rr.com wrote:
 Alright if I download and compile it can I just mv gdb.exe into /bin
 and 
 overwrite gdb.exe?
 

use
./configure --prefix=/
make
make install

and it should end up in the right place





Re: Short gdb question.

2012-05-04 Thread Reid Thompson
On Fri, 2012-05-04 at 14:37 +, Reid Thompson wrote:
 On Fri, 2012-05-04 at 00:45 -0700, eric_justin_al...@cfl.rr.com wrote:
  Alright if I download and compile it can I just mv gdb.exe into /bin
  and 
  overwrite gdb.exe?
  
 
 use
 ./configure --prefix=/
 make
 make install
 
 and it should end up in the right place
 

I actually usually use

./configure --prefix=/usr


and everything ends up in the correct place




Re: Short gdb question.

2012-05-03 Thread Reid Thompson

On 5/3/2012 7:47 PM, eric_justin_al...@cfl.rr.com wrote:
Is this the right place to suggest that gdb be upgraded for cygwin. If 
not where could I suggest that? If this is an acceptable place then 
can I add here that if you guys do upgrade gdb that I was hoping you 
could make it a bit more detailed maybe make it to show a bit more 
information about crashes. An example is that I m working with a 
linked list and when the program crashes gdb prints out and only 
prints out the words below this text. I am left clueless about the error.


Program received signal SIGABRT, Aborted.
0x7ffe0304 in ?? ()



Just...
download, configure, make, make install
http://ftp.gnu.org/gnu/gdb/

$ /opt/removethis/bin/gdb.exe --version
GNU gdb (GDB) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
http://gnu.org/licenses/gpl.html

This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as i686-pc-cygwin.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: man redirect error

2012-01-04 Thread Reid Thompson
On Tue, 2012-01-03 at 15:30 -0600, Nellis, Kenneth wrote:
 Thought maybe someone would be interested in the following error.
 
 $ man gcc | head
 GCC(1)GNU
 GCC(1)
 
 
 
 NAME
gcc - GNU project C and C++ compiler
 
 SYNOPSIS
gcc [-c|-S|-E] [-std=standard]
[-g] [-pg] [-Olevel]
 Error executing formatting or display command.
 System command (cd /usr/share/man  (echo .pl 11i; /usr/bin/gunzip
 -c '/usr/share/man/man1/gcc.1.gz') | /usr/bin/tbl | /usr/bin/nroff -c
 -mandoc 2/dev/null | /usr/bin/less -isrR) exited with status 36096.
 No manual entry for gcc
 $


probably not.  Why are you wanting to head the output?  Man already
displays using a pager.

$ uname -a
Linux raker2 2.6.39-gentoo-r3 #7 SMP PREEMPT Thu Nov 17 16:11:22 EST
2011 x86_64 Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz GenuineIntel
GNU/Linux

$ man gcc |head
GCC(1)GNU
GCC(1)



NAME
   gcc - GNU project C and C++ compiler

SYNOPSIS
   gcc [-c|-S|-E] [-std=standard]
   [-g] [-pg] [-Olevel]
Error executing formatting or display command.
System command (cd /usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man
 (echo .pl 11i; /bin/bzip2 -c -d
'/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man/man1/gcc.1.bz2')
| /usr/bin/gtbl | /usr/bin/nroff -mandoc | /usr/bin/less) exited with
status 141.
No manual entry for gcc


RE: man redirect error

2012-01-04 Thread Reid Thompson
On Wed, 2012-01-04 at 08:51 -0600, Thrall, Bryan wrote:

 Perhaps the OP was looking for something like apropos or whatis?
 
 Given that man already pipes its output through a pager, the OP could just 
 use the MANPAGER environment variable to do what he wants:
 
 $ MANPAGER=head man gcc
 GCC(1)GNU   GCC(1)
 
 
 
 NAME
gcc - GNU project C and C++ compiler
 
 SYNOPSIS
gcc [-c|-S|-E] [-std=standard]
[-g] [-pg] [-Olevel]
 
 Hope this helps,
 --
 Bryan Thrall
 Principal Software Engineer
 FlightSafety International
 bryan.thr...@flightsafety.com
 
 

http://cygwin.com/cgi-bin2/package-grep.cgi?grep=apropos



[ -w filename ] returns true when permissions are -r--r--r--

2011-07-20 Thread Reid Thompson
Is this broken?  Or a known windows/cygwin discrepancy?  Or am I missing
something with my posix/windows file permissions settings

reid.thompson@ws-jrt ~
$ ls -rlt afile
-r--r--r-- 1 reid.thompson Domain Users 6 2011-07-20 14:02 afile

reid.thompson@ws-jrt ~
$ if [ -w afile ]; then   echo  file is writeable; else   echo  file
is not writeable; fi
 file is writeable



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: [ -w filename ] returns true when permissions are -r--r--r--

2011-07-20 Thread Reid Thompson
On Wed, 2011-07-20 at 14:05 -0400, Reid Thompson wrote:
 Is this broken?  Or a known windows/cygwin discrepancy?  Or am I missing
 something with my posix/windows file permissions settings
 
 reid.thompson@ws-jrt ~
 $ ls -rlt afile
 -r--r--r-- 1 reid.thompson Domain Users 6 2011-07-20 14:02 afile
 
 reid.thompson@ws-jrt ~
 $ if [ -w afile ]; then   echo  file is writeable; else   echo  file
 is not writeable; fi
  file is writeable
 

$ uname -r
1.7.7(0.230/5/3)



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: 'tr' Bug

2011-03-11 Thread Reid Thompson

On 03/11/2011 10:28 AM, Tim Daneliuk wrote:

echo /opt/IBN/df | tr [A-Z] [a-z]

produces:

/opt/xxx/df

not:

/opt/ibn/df

Both Linux and FreeBSD produce correct results.  Is this a known
'tr' bug?



$ env|grep LANG
LANG=en_US.UTF-8
GDM_LANG=en_US.UTF-8
[10:38:15] rthompso@raker~
$ uname -a
Linux raker 2.6.36-gentoo-r5 #1 SMP PREEMPT Tue Jan 4 15:04:48 EST 2011 i686 Intel(R) Core(TM)2 CPU 6320 @ 1.86GHz GenuineIntel 
GNU/Linux

[10:38:18] rthompso@raker~
$ echo /opt/IBN/df | tr [A-Z] [a-z]
/opt/IBN/df
[10:38:22] rthompso@raker~
$ tr --version
tr (GNU coreutils) 8.7
Packaged by Gentoo (8.7 (p1))
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jim Meyering.
[10:38:25] rthompso@raker~

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: 'tr' Bug

2011-03-11 Thread Reid Thompson

On 03/11/2011 10:39 AM, Eric Blake wrote:

On 03/11/2011 08:28 AM, Tim Daneliuk wrote:

echo /opt/IBN/df | tr [A-Z] [a-z]

produces:

/opt/xxx/df


Let me guess - you have a file named 'x' in the current directory.

Quote your arguments, so that the shell won't glob them:

echo /opt/IBN/df | tr '[A-Z]' '[a-z]'

This is not cygwin-specific.



you are correct ;)

thank you

$ echo /opt/IBN/df | tr '[A-Z]' '[a-z]'
/opt/ibn/df

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: No manual entry for awk

2011-01-19 Thread Reid Thompson

On 1/19/2011 7:08 PM, Chris Velevitch wrote:

I've just downloaded and run setup.exe v 2.738 on Win 7 Ent. I've only
installed 'base' and the 'vim' editor.

'base' includes awk, but the man entry for seems to be missing.

How do I get it and who needs to know for future cygwin updates?


Chris

try
$ man gawk

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: 1.7.[67]: getting bash prompt takes 50 seconds

2010-09-02 Thread Reid Thompson

On 9/1/2010 8:35 AM, Andrey Repin wrote:
+

Did you tried to *uninstall* bash-completion?


What changed such that bash-completion, which previously worked fine, no longer 
does?


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: 1.7.[67]: getting bash prompt takes 50 seconds

2010-09-02 Thread Reid Thompson

On 9/2/2010 11:03 PM, Reid Thompson wrote:

On 9/1/2010 8:35 AM, Andrey Repin wrote:
+

Did you tried to *uninstall* bash-completion?


What changed such that bash-completion, which previously worked fine, no longer 
does?


The biggest change i've seen is in the slowdown of
./configure
and
make

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Building Mutt: configure: invalid value of canonical build

2010-08-31 Thread Reid Thompson

Download the mutt 1.5.20 source from the mutt website.. it configures fine for 
me (had to add some dev libs, etc)
...snip...
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking for iswalnum... yes
checking for iswalpha... yes
checking for iswcntrl... yes
checking for iswdigit... yes
checking for iswgraph... yes
checking for iswlower... yes
checking for iswprint... yes
checking for iswpunct... yes
checking for iswspace... yes
checking for iswupper... yes
checking for iswxdigit... yes
checking for towupper... yes
checking for towlower... yes
checking for mbstate_t... yes
checking for wchar_t functions... yes
checking for nl_langinfo and CODESET... yes
checking for nl_langinfo and YESEXPR... yes
checking for ospcat... none
configure: creating ./config.status
config.status: creating Makefile
config.status: creating contrib/Makefile
config.status: creating doc/Makefile
config.status: creating imap/Makefile
config.status: creating intl/Makefile
config.status: creating m4/Makefile
config.status: creating po/Makefile.in
config.status: creating hcachever.sh
config.status: creating muttbug.sh
config.status: creating doc/instdoc.sh
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile

desktop ~/src/mutt-1.5.20


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: changing font

2010-07-20 Thread Reid Thompson
On Tue, Jul 20, 2010 at 12:00:21PM -0400, matias kaukonen wrote:
 -
 xlsfonts
 -
 . . .
 -adobe-courier-bold-r-normal--14-140-75-75-m-90-iso10646-1
 -adobe-courier-bold-r-normal--14-140-75-75-m-90-iso8859-1
 -adobe-courier-bold-r-normal--14-140-75-75-m-90-iso8859-10
 -adobe-courier-bold-r-normal--14-140-75-75-m-90-iso8859-13
 -adobe-courier-bold-r-normal--14-140-75-75-m-90-iso8859-14
 -adobe-courier-bold-r-normal--14-140-75-75-m-90-iso8859-15
 -adobe-courier-bold-r-normal--14-140-75-75-m-90-iso8859-2
 -adobe-courier-bold-r-normal--14-140-75-75-m-90-iso8859-3
 
 -
 Then I changed .Xdefaults to
 -
 aterm*font:-adobe-courier-bold-r-normal--17-120-100-100-m-100-iso10646-1
 XTerm.font:-adobe-courier-bold-r-normal--17-120-100-100-m-100-iso10646-1
 urxvt*font:-adobe-courier-bold-r-normal--17-120-100-100-m-100-iso10646-1
 -
 Next, I selected the font with xfontsel, and then started
 up an xterm
 -
 result: the font did not change
 Is something incorrect or out of order?
 
 matt.
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Problem reports:   http://cygwin.com/problems.html
 Documentation: http://x.cygwin.com/docs/
 FAQ:   http://x.cygwin.com/docs/faq/


did you restart X after modifying Xdefaults?

this page
http://sgenomics.org/~jtang/blog/posts/Reloading_Xdefaults_without_restarting_X/

notes that

To reread your .Xresources file, and throw away your old resources, you
can type:

xrdb ~/.Xdefaults


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: changing font

2010-07-13 Thread Reid Thompson
On Mon, Jul 12, 2010 at 04:59:11PM -0400, matias kaukonen wrote:
 1. Could someone pls post instructions about how to reply to an existing post.
 2. I have a font I'd like to use and its located at
 /usr/X11R6/lib/X11/fonts/TTF with
 administrator permissions.
 3. How can I make this font the default for an xterm?  Do I have to
 set the path in
 some manner?

lookup the xlsfonts and xfontsel packages and how to use them to get a
font.

i.e.

$ xlsfonts |grep -i terminus|grep medium
-xos4-terminus-medium-r-normal--0-0-72-72-c-0-iso10646-1
-xos4-terminus-medium-r-normal--0-0-72-72-c-0-iso8859-1
-xos4-terminus-medium-r-normal--0-0-72-72-c-0-iso8859-13
-xos4-terminus-medium-r-normal--0-0-72-72-c-0-iso8859-15
-xos4-terminus-medium-r-normal--0-0-72-72-c-0-iso8859-16
-xos4-terminus-medium-r-normal--0-0-72-72-c-0-iso8859-2
-xos4-terminus-medium-r-normal--0-0-72-72-c-0-iso8859-5
-xos4-terminus-medium-r-normal--0-0-72-72-c-0-iso8859-7
-xos4-terminus-medium-r-normal--0-0-72-72-c-0-iso8859-9
-xos4-terminus-medium-r-normal--0-0-72-72-c-0-koi8-r
-xos4-terminus-medium-r-normal--0-0-72-72-c-0-koi8-u
-xos4-terminus-medium-r-normal--0-0-72-72-c-0-microsoft-cp1251
-xos4-terminus-medium-r-normal--0-0-72-72-c-0-paratype-pt154
-xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso10646-1
-xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-1
-xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-13
-xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-15
-xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-16
-xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-2
-xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-5
-xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-7
-xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-9
-xos4-terminus-medium-r-normal--12-120-72-72-c-60-koi8-r
-xos4-terminus-medium-r-normal--12-120-72-72-c-60-koi8-u
-xos4-terminus-medium-r-normal--12-120-72-72-c-60-microsoft-cp1251
-xos4-terminus-medium-r-normal--12-120-72-72-c-60-paratype-pt154
-xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso10646-1
-xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-1
snip

$ grep -i termin .Xdefaults 
aterm*font: -xos4-terminus-medium-r-normal-*-12-120-72-72-c-60-iso10646-1
Xterm.font: -xos4-terminus-medium-r-normal-*-12-120-72-72-c-60-iso10646-1
urxvt*font: -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso10646-1


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: changing font

2010-07-13 Thread Reid Thompson
On Tue, Jul 13, 2010 at 10:33:14AM -0400, Reid Thompson wrote:
 On Mon, Jul 12, 2010 at 04:59:11PM -0400, matias kaukonen wrote:
  1. Could someone pls post instructions about how to reply to an existing 
  post.


a starting point would be to google
mailing list netiquette

some pointers in general,
   before you hit send, look at To:  Cc:  Bcc:   etc and make sure that
   you're sending to who you want to addresss.  Generally, this will be
   the mailing list address only.  In rare/some cases, it may be
   directly to the poster -- but that is generally *rare*
   don't reply to digests
   trim the original email text to what is pertinent to your response
   don't top post -- either bottom post or inline post



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Mail program

2010-07-01 Thread Reid Thompson
On Wed, Jun 30, 2010 at 10:07:19AM -0700, Refr Bruhl wrote:
 
when you say
 I really need the ability to redirect a text stream to a pipe to mail. 
do you mean ala

$ cat file.txt | mailprogram




--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: mintty screen size problem

2010-06-10 Thread Reid Thompson

On 6/10/2010 8:06 PM, Steven Woody wrote:

On 11 June 2010 01:31, Larry Hall (Cygwin)
reply-to-list-only...@cygwin.com  wrote:

On 6/10/2010 1:21 PM, Steven Woody wrote:


On 11 June 2010 01:18, Larry Hall (Cygwin)
reply-to-list-only...@cygwin.comwrote:


On 6/10/2010 1:09 PM, Steven Woody wrote:


On 10 June 2010 13:27, Andy Koppeandy.ko...@gmail.com  wrote:


snip


The workaround is to invoke such programs through 'cygstart'.
Alternatively, the 'conin' wrapper mentioned in that thread should
work fairly well for Python.



Thanks.  'cygstart' works, but I have to type the full path of the
program that I want to run as a parameter to 'cygstart'.


You can use 'which' to get the full path name, as long as the target is
in
the path.



Yes, I can. Just feel it's not easy to use (have to type many keys).
On the other hand, cygstart always open another window to run the
program, it's not so decent.


That's because the Windows program you're trying to use doesn't understand
ptys and buffers its output as a result.  If you want to work around this
incompatibility, you need a console, not a tty.  'cygstart' will open a
console for any program that needs one.

At this point, some inconvenience is necessary to get the output you expect
when you expect it.  If you're curious to learn more, you can check out the
email archives where this has been discussed allot.


Understand, thanks for the explanation.  Just thinking for the moment
that why not we cannot have a good terminal emulator not based on pty.


Why not...
download the slang source code from here http://www.jedsoft.org/slang/ and,
   configure  make  make install
it
then download the slrn source code from here http://www.slrn.org and
   configure  make  make install
it




--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Terminal windows

2010-05-19 Thread Reid Thompson
On Wed, May 19, 2010 at 06:29:03PM +0100, Luis Vital wrote:
 Hi,
 
 I am running the text version of cygwin.
 What I want to do is, while in a terminal window
 launch a script wich opens another terminal window
 and launches inside this one a program.
 Thanks in advance for any help. Best regards,

if not using xterm, replace it with your terminal of choice and adjust 
parameters accordingly

$ cat ./launchit.sh 
#!/bin/bash

nohup xterm -e $@ 


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: problems starting xterm

2010-03-19 Thread Reid Thompson
On Fri, 2010-03-19 at 10:54 +0100, Markus Hoenicka wrote:
 Hi,

 I have plenty of shells installed (bash, ash, dash), and they work ok  
 in MinTTY. I'm afraid I'm missing some simple but important setting  
 somewhere. Any ideas?

what happens when you call xterm from the mintty command line?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: mintty colors

2010-03-03 Thread Reid Thompson

On 3/3/2010 2:33 AM, Gary Johnson wrote:

Thanks, but I guess my explanation wasn't clear enough.  What I
would like to be able to configure are the colors that mintty uses
to display the 16 colors of a 16-color terminal.  I guess these are
termed ANSI colors.  These are the colors that programs such as
grep, ls and vim use when executed in a color terminal.

My specific problem is that the blue that mintty displays for ANSI
color 4 or 12 is so dark that blue characters are illegible on a
black background.  I've adjusted the color that rxvt uses by putting

 Rxvt.color12:  #007fff
 Rxvt.color4:   #007fff

in my ~/.Xdefaults file, but I can't find the equivalent, if there
is one, for mintty.  There is some mention of this in the mintty man
page, in the section on Changing the ANSI colours, but that is not
the same as being able to configure mintty so that it always uses a
particular palette.
mple


ahh sorry.
you may have already seen this...
looks like there may not be one unless this change request and reversion was 
re-implemented
http://groups.google.com/group/mintty-discuss/browse_thread/thread/33cb565e4f32f146

It does appear to provide a means to do it yourself(recompile required).

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: mintty colors

2010-03-02 Thread Reid Thompson

On 3/2/2010 9:07 PM, Gary Johnson wrote:

I have downloaded mintty-0.6-beta2-cygwin15.zip and read
mintty-0.5.8.pdf, but I don't see a way to change the ANSI color
palette other than to send escape sequences.  I could echo the
escape sequences in my ~/.bashrc, but mintty isn't the only terminal
I use.  I could wrap mintty in a shell script, but that seems a bit
of a kludge.  Is there some other way to configure mintty's colors
that I'm missing?


man mintty

CONFIGURATION
   Most settings are chosen not through command line arguments but in the graphical options dialog, which 
can be reached via the context menu
   or the window menu.  Settings are stored in an INI-style configuration file that by default is located 
at ~/.minttyrc.  This can be over-
   ridden with the --config command line option.  Settings are written to the file whenever the OK or 
Apply buttons are pressed in the

   options dialog.

   The following sections explain the settings on each pane of the options dialog.  For each setting, its 
name in the config file is shown in
   parentheses, along with its default value, e.g. Columns=80.  For multiple-choice settings, the value 
representing each choice in the con-

   fig file is shown.

   Looks
   Settings affecting mintty's appearance.

   Colours
  Clicking on one of the buttons here opens the colour selection dialog.  In the config file, 
colours are represented as comma-sepa-

  rated RGB triples with decimal 8-bit values (i.e. ranging from 0 
to 255).

  - Foreground (ForegroundColour=191,191,191)
  - Background (BackgroundColour=0,0,0)
  - Cursor (CursorColour=191,191,191)

   Use system colours instead (UseSystemColours=0)
  If this checkbox is ticked, the Windows-wide colour settings are used instead of the colours 
chosen above.  (These are the same

  colours as used for example in Notepad.)

   Transparency (Transparency=0)
  Window transparency level, with the following choices:

  - Off (0)
  - Low (1)
  - Medium (2)
  - High (3)
  - Glass (-1)

   The Glass option is only available on Vista and above with desktop compositing enabled.  To make this 
reasonably usable, the glass colour
   needs to be set to be as dark as possible in the Windows control panel: choose Personalize from the 
desktop context menu, click on Window
   Color, turn the color intensity up to the maximum, show the color mixer, and turn the brightness down 
to black.


   Opaque when focused (OpaqueWhenFocused=0)
  Enable to make the window opaque when it is active (to avoid background distractions when 
working in it).


   Cursor (CursorType=2)
  The following cursor types are available:

  - Block (0)
  - Underscore (1)
  - Line (2)

   Enable cursor blinking (CursorBlinks=1)
  If enabled, the cursor blinks at the rate set in the Windows 
Keyboard control panel.

   Text
   Settings controlling text display.

   Font selection
  Clicking on the Select button opens a dialog where the font and its properties can be chosen. 
In the config file, this corresponds

  to the following entries:

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: mintty colors

2010-03-02 Thread Reid Thompson

On 3/2/2010 9:07 PM, Gary Johnson wrote:

I have downloaded mintty-0.6-beta2-cygwin15.zip and read
mintty-0.5.8.pdf, but I don't see a way to change the ANSI color
palette other than to send escape sequences.  I could echo the
escape sequences in my ~/.bashrc, but mintty isn't the only terminal
I use.  I could wrap mintty in a shell script, but that seems a bit
of a kludge.  Is there some other way to configure mintty's colors
that I'm missing?

Regards,
Gary


or just right click in the mintty window and select options

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: How do I start WM?

2010-02-26 Thread Reid Thompson

On 2/26/2010 6:40 PM, Kenneth Wolcott wrote:

Hi;

   Now, if it isn't asking too much, I'd like to use KDE as my Window
Manager and I'd like some KDE-based utilities, like konsole and karm
(? the task/time manager).

   I don't see a great deal of visible difference between twm and
openbox, but I'll look on openbox.org and find more details.

   The Windoze start shortcut did help, and the ~/.xinitrc did help -- thank 
you.

Thanks,
Ken Wolcott

i've not checked to see if KDE or any of it's components is/are available as part of the cygwin X stuff (when 
I use a heavyweight desktop environment i use gnome).  a quick search on KDE at the package search page of 
cygwin lists nothing, while a search on gnome lists quite a few.  someone with more knowledge will have to 
advise you


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: How do I start WM?

2010-02-25 Thread Reid Thompson
On Thu, 2010-02-25 at 10:56 -0800, Joseph Ess wrote:
 From: Yaakov (Cygwin/X) yselkowitz at users dot sourceforge dot net
 On 2010-02-25 10:16, Joseph Ess wrote:
  I can reproduce your finding.  Putting just openbox in my ~/xinitrc 
  does not work. 
  Of course not; the xinit(1) man page explains that clearly.
 
 Really? I looked. Your definition of clear and mine must be different.  
 The xinit(1) man page suggests an ~/xinitrc like so:
 
 xrdb -load $HOME/.Xresources
 xsetroot -solid gray 
 xclock -g 50x50-0+0 -bw 0 
 xload -g 50x50-50+0 -bw 0 
 xterm -g 80x24+0+0 
 xterm -g 80x24+0-0 
 twm
 I would assume (yea, I'm sticking my neck out) I could comment out twm and 
 substitute another WM. Doing so works with WindowMaker.  It doesn't with 
 OpenBox.
 Reid Thompson suggested doing something similar here: 
 http://cygwin.com/ml/cygwin-xfree/2010-02/msg00149.html 
 What am I doing wrong and how can i fix it?
 Thanks,
 Joe

yep -- mine is probably not the best/a little off.

Note my last line, i'm not at my cygwin box right now, but I'll bet that
if you exit the xterm that is opened on startup, that everything goes
away (i.e. xinit exits after that xterm exits )

exec xterm -geometry 80x6+0+0 -name login


I generally start my xserver  apps with my own script.  Which is why i
had the short debugging session to get startx/.xinitrc/.xserverrc
working on my box that i posted in my email.  At some point in the way
back, I left things in a bad state.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: How do I start WM?

2010-02-25 Thread Reid Thompson
On Thu, 2010-02-25 at 12:32 -0800, Joseph Ess wrote:
 From: Yaakov (Cygwin/X) yselkowitz at users dot sourceforge dot net
  Openbox is just a WM.  It does not provide a panel, pager, or other 
 desktop components.
 
 Maybe I'm thinking of BlackBox, since it has a toolbar.
 Thanks,
 Joe

these types of components can be used with openbox, if you want.
obconf allows you to set N number of desktops, dock location etc.
the openbox website has a lot of information regarding usage and
configuration ( i.e. i have openbox run 3 desktops and I mapped the
windows-meta-key-F1-3 to switch between them -- i also run a taskbar
(tint2) that allows me to do the same as well as have systray)

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: How do I start WM?

2010-02-24 Thread Reid Thompson

Try this:
Copy the shortcut as mentioned earlier in the email trail.
set the Target to be:
  C:\cygwin\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startx -- 
/usr/bin/Xwin.exe
Note the double quotes around the last argument.  Without them, Xwin.exe doesn't start on my box.  startx also 
would not invoke Xwin.exe on my box unless I explicitly called it ala above

Commmand line invocation- $ startx -- /usr/bin/Xwin.exe
perhaps it's not reading the symlink properly (the default server is set as /usr/bin/X, which is symlinked to 
/usr/bin/Xwin.exe) -- nope, explicitly setting default server to /usr/bin/Xwin.exe doesn't start it either via 
a plain startx on the command line.  setting startx to echo the eval of the invocation yields


   xinit /home/rthompso/.xinitrc  -- /home/rthompso/.xserverrc :0  -auth 
'/home/rthompso/.serverauth.5912'
aha -- my .xserverrc has:
 #exec X -screen 0 1024x768x16 -engine 4 -ac -nowinkill -noreset 
-emulate3buttons 100
uncomment it and try again from command line a plain startx... xserver starts up in it's own window with my 
.xinitrc programs running.

shut it down, and try my copy of the shortcut again, starts again.

Now that we've established that mine wasn't starting due to the invalid 
.xserverrc, reset the shortcut target to
C:\cygwin\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startx
and try it - starts again

Pasted below is my .xinitrc (you said you don't have one in $HOME), you can try this one in your $HOME if you 
want.  It will open a couple of rxvt terms and and xterm.  It is configured to startup the openbox window 
manager.  You MAY prefer to copy the /etc/X11/xinit/xinitrc to your $HOME/.xinitrc to use as your base.


cat .xinitrc
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi


/usr/bin/openbox  
#twm 
#wmaker 
#/opt/gnome2/bin/gnome-session 

# start some nice programs
rxvt -d :0.0 -geometry 80x35+494+51 -sl 1500 -sr -fg lightblue -bg darkolivegreen 

rxvt -d :0.0 -geometry 80x20+294-0 -sl 1500 -sr -fg lightblue -bg darkolivegreen 

exec xterm -geometry 80x6+0+0 -name login


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: How do I start WM?

2010-02-24 Thread Reid Thompson

On 2/24/2010 9:54 PM, Kenneth Wolcott wrote:


Apparently I'm missing some components...

$ openbox-session
which: no hsetroot in [PATH content deleted]
which: no esetroot in [PATH content deleted]
xsetroot:  unable to open display 'KWOLCOTT-T61:0.0'
which: no gnome-settings-daemon in [PATH content deleted]
which: no xfce-mcs-manager in [PATH content deleted]
which: no start_kdeinit in [PATH content deleted]
Openbox-Message: Failed to open the display from the DISPLAY
environment variable.

Normally I use the Xming X Window manager if I'm not running the twm
Window Manager executed from Cygwin.



Lets make sure we're on the same page.
Xming X Window manager - from a quick glance, this is an X server, not a window manager.  It's corresponding 
executable in cygwin would be Xwin.exe, started via either startx or startxwin.exe.


twm and openbox (and openbox-session which adds some autostart and xdg interactions to an openbox manages 
session) are window managers.  window managers require an xserver to be started first, all the X applications 
'paint' themselves on the Xserver.  The window manager, allows you to 'manage' those applications (size, 
location, minimize,maximize etc ).


So running openbox or openbox-session w/o an X server already running will fail 
ala above.
Have you had a chance to read through my previous post?

reid


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: xls to text conversion ?

2010-02-04 Thread Reid Thompson

On 2/4/2010 1:55 PM, Maarten Vanneste wrote:

Dear all,
I was wondering whether there is a cygwin tool/program which converts
microsoft excel files to text. Any suggestions ?
Thanking you in advance,
With best regards,
Maarten


I just ran through some options installed XLSperl at work for converting some production stuff ( this was 
linux, but being perl I'm assuming it should work fine via cygwin ).

http://www.google.com/search?q=xlsperlie=utf-8oe=utf-8aq=trls=org.mozilla:en-US:officialclient=firefox-a

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: C compiler is broken under 1.7.1-1

2009-12-28 Thread Reid Thompson

Paul McFerrin wrote:

My C compiler appears to be broken:

.$ cc -v -O test.c

what are the contents of  test.c

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Questions about gnu debug

2009-12-24 Thread Reid Thompson

Marco Atzeri wrote:

--- Gio 24/12/09, Liming ha scritto:


Thanks. Csaba,

I still not so clear about gdb, I am usually use microsoft
Visual Studio

1. With g++ -g -o executable_name  a.o b.o ...
Can I set break point? or this one only display the place
the code has problem, then go to there to modify it?



http://www.unknownroad.com/rtfm/gdbtut/gdbtoc.html


2. For ddd, Emacs, Eclipse
Are they IDC with debug inside and can set break point? I
just wondering if there has a software like Visual Studio
IDE, so I can debug it inside it.



ddd or insight will provide you with a GUI interface to gdb, that will be as close to what you're used to that 
 you will be able to get.  gdb, ddd, insight will provide breakpoints and the other things that you are used to .


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Questions about gnu debug

2009-12-24 Thread Reid Thompson

Eliot Moss wrote:

And this may add a little to your understanding:


Note these two options to gdb also...

 --tui  Use a terminal user interface.

  -w Use a window interface.

--tui will utilize a *curses interface

-w brings up insight on my system

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



The procedure entry point stpcpy could not be located in the dynamic link library cygwin1.dll

2009-12-23 Thread Reid Thompson

I'm getting the subject error on attempting to update.
Any pointer or suggestions for a remedy?

removed the attached the error screen shot as mailing list disallowed it.

pasted it here
http://tinypic.com/view.php?pic=2mwaygws=6


Thanks
reid


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: The procedure entry point stpcpy could not be located in the dynamic link library cygwin1.dll

2009-12-23 Thread Reid Thompson

Jason Pyeron wrote:


Could you move the dialog, I would like to see which part of the setup it is in.

Thanks.


I think i've gotten past it.  I found and renamed the infrarecorder installed
C:\Program Files\InfraRecorder\cdrtools  cygwin1.dll and the cygwin /bin/cygwin1.dll. Re-ran setup marked to 
reinstall cygwin and it installed an updated cygwin1.dll.



$ ls -rlt cygwin1*
-rwx--x---  1 Administrator None  1800981 2005-09-12 23:25 cygwin1-20050912.dll
-rwxr-x---  1 Administrator None  1295582 2005-09-12 23:27 cygwin1.dll.orig
-rwxr-x---+ 1 Administrator Users 1872884 2008-06-12 13:35 cygwin11.dll
-rwxr-xr-x  1 Administrator root  2477372 2009-12-07 05:51 cygwin1.dll

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: RAM requirements for Cygwin/x

2009-12-21 Thread Reid Thompson

WALLACE, ANDREW F (ATTLABS) wrote:

Dear Cygwin/x developers,

I have a laptop with 2 GB of RAM running Window XP Professional Version
2002.  Do I need more RAM for Cygwin/x to work effectively? 


No.  i've ran X with 512, 768, and 1000MB fine.
I wasn't attempting to run Gnome or KDE desktops, only X applications.  Not sure how resource intensive the 
entire desktop suite is.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Updated: stable compiler package gcc4-4.3.4-3

2009-12-11 Thread Reid Thompson

Dave Korn wrote:


  I have just uploaded an updated GCC-4 package to cygwin.com.  It will be
arriving at your favourite mirror next time it synchronizes itself with the
official Cygwin repository.


A well written post.  Thank you.
One thing that I noticed re /etc/alternatives with regard to CodeBlocks and it may have the same effect on 
other IDES, is that I had to explicitly point CodeBlocks to the gcc-n executable.  CodeBlocks automatically 
'found' and populated itself with gcc, but invocation fails with


dtest - Debug uses an invalid compiler. Skipping...
Nothing to be done.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Help with errors while compiling

2009-12-07 Thread Reid Thompson
On Mon, 2009-12-07 at 12:12 -0800, Afflictedd2 wrote:
 Hi everyone,
 
 I'm trying to build a simple program using pthreads, but I get the
 following
 errors, why?
 
 Any help appreciated.
 J
 
 make -f Makefile CFG=Debug 
 g++ -c   -g -o Debug/Pthreads.o -I/Cygwin/usr/include  Pthreads.cpp
 In file included from Pthreads.cpp:10:
 /Cygwin/usr/include/pthread.h:77: error: `pthread_attr_t' was not
 declared
 in this scope
 /Cygwin/usr/include/pthread.h:77: error: expected primary-expression


perhaps an  -lpthread



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Help with errors while compiling

2009-12-07 Thread Reid Thompson

Afflictedd2 wrote:

Thank you Dave! I hadn't thought of doing it directly in the cygwin console,
because I had tried it on my regular console which also has the cygwin path
in it, but it also has the mingw32 path.. which I think that's the root of
all evil :\


 Hey, no fair, you never mentioned all that before!


Sorry I forgot :\

It works great like that, also with my makefile.. but I want it to work with
the IDE, because I like a lot of its features, and I'm I don't like the
cygwin console much. I just need to know what environment I need to create
in it. Any clues where I could find this type of information?

I know I used mingw-make32 but.. I've also tried using the
C:\Cygwin\bin\make, and I get the same errors, so if there could be a way to
put the same environment that cygwin console has, into my IDE. Where is this
environment information listed?

Ed.


Dave Korn-6 wrote:

Afflictedd2 wrote:

Well,

Now that you say that. I will simplify my makefile, but then it doesn't
know
what pthread_create is.. or anything related to pthread.
C:\Users\Viper\Documents\Cpp\PthreadsC:\Program Files\SlickEdit
2009\win\vsbuild -signal 9009 -command make -f Makefile CFG=Debug
VSLICKERRORPATH=C:\Users\Viper\Documents\Cpp\Pthreads

  Hey, no fair, you never mentioned all that before!


mingw32-make: *** [Debug/Pthreads.o] Error 1

  And you're not even using cygwin make.  Clearly this vsbuild thing has
no
idea how to drive Cygwin's gcc and it's getting all your paths and
environment
variables mixed up.


The Pthreads.cpp file is perfect, I've tried it in Linux..

  And I've tried it in Cygwin:


$ mkdir Debug

ad...@ubik /tmp/pthread
$ g++ -c   -g -o Debug/Pthreads.o  Pthreads.cpp

ad...@ubik /tmp/pthread
$ echo $?
0

ad...@ubik /tmp/pthread
$

... so it's all down to some problem in the IDE you're using.  Which seems
to
be expecting to work with visual studio.  No wonder the poor thing's
confused!

cheers,
  DaveK



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple







C:\Program Files\SlickEdit  so perhaps the user guide at
http://www.slickedit.com/products/slickedit/product-documentation

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Help with errors while compiling

2009-12-07 Thread Reid Thompson

Afflictedd2 wrote:

what... ? what are you implying.. that doesn't help !

jreidthompson wrote:

Afflictedd2 wrote:

Thank you Dave! I hadn't thought of doing it directly in the cygwin
console,
because I had tried it on my regular console which also has the cygwin
path
in it, but it also has the mingw32 path.. which I think that's the root
of
all evil :\


 Hey, no fair, you never mentioned all that before!

Sorry I forgot :\

It works great like that, also with my makefile.. but I want it to work
with
the IDE, because I like a lot of its features, and I'm I don't like the
cygwin console much. I just need to know what environment I need to
create
in it. Any clues where I could find this type of information?

I know I used mingw-make32 but.. I've also tried using the
C:\Cygwin\bin\make, and I get the same errors, so if there could be a way
to
put the same environment that cygwin console has, into my IDE. Where is
this
environment information listed?

Ed.


Dave Korn-6 wrote:

Afflictedd2 wrote:

Well,

Now that you say that. I will simplify my makefile, but then it doesn't
know
what pthread_create is.. or anything related to pthread.
C:\Users\Viper\Documents\Cpp\PthreadsC:\Program Files\SlickEdit
2009\win\vsbuild -signal 9009 -command make -f Makefile CFG=Debug
VSLICKERRORPATH=C:\Users\Viper\Documents\Cpp\Pthreads

  Hey, no fair, you never mentioned all that before!


mingw32-make: *** [Debug/Pthreads.o] Error 1

  And you're not even using cygwin make.  Clearly this vsbuild thing
has
no
idea how to drive Cygwin's gcc and it's getting all your paths and
environment
variables mixed up.


The Pthreads.cpp file is perfect, I've tried it in Linux..

  And I've tried it in Cygwin:


$ mkdir Debug

ad...@ubik /tmp/pthread
$ g++ -c   -g -o Debug/Pthreads.o  Pthreads.cpp

ad...@ubik /tmp/pthread
$ echo $?
0

ad...@ubik /tmp/pthread
$

... so it's all down to some problem in the IDE you're using.  Which
seems
to
be expecting to work with visual studio.  No wonder the poor thing's
confused!

cheers,
  DaveK


C:\Program Files\SlickEdit  so perhaps the user guide at
http://www.slickedit.com/products/slickedit/product-documentation



Based on the data you've posted I guessed that you are using slickedit
C:\Users\Viper\Documents\Cpp\PthreadsC:\Program Files\SlickEdit
as your IDE.
Is this an incorrect assumption?
If it is, then you need to provide more information -- what IDE are you using?

You asked this question -I just need to know what environment I need to
 create
 in it. Any clues where I could find this type of information?

I thought perhaps that the slickedit user guide might provide clues on how to 
setup various build environments.
Assuming that slickedit is your ide, I googled for slickedit cygwin configuration and found 
http://community.slickedit.com/index.php?topic=4551.msg18553 which may or may not be of help...


If your IDE and it's documentation do not provide enough information for you to setup the environment, then 
you may want to consider a different IDE.  CodeBlocks www.codeblocks.com works well on windows and is fairly 
easy to configure for all the compiler environments I have on my box

cygwin (i had to explicitly configure Settings/compiler  debuger/cygwin gcc/ 
to point to gcc-3 and g++-3
as I have /etc/alternatives configured and codeblocks could not use the symlink)
borland
OpenWatcom
as well as the built-in ?mingw? gcc environment

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Hippo icon for cygwin...

2009-12-05 Thread Reid Thompson

Charles Wilson wrote:

Greg Chicares wrote:

Might this file:
  1a652c4c8c31b80c85d6cbc2b4093060 *hippo.ico
be somehow malformed? My computer BSODs every time I try to view
it in 'irfanview'. This has happened three times in a row.


irfanview handles it fine on my box (XP).

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: cygwin-x xterm not compatible with windows 7?

2009-12-03 Thread Reid Thompson

wgw...@sbcglobal.net wrote:

Hi:
   I sent this post earlier this week and have not received any replies. 
If this is the wrong place to post this,

please let me know where I should.

Thanks

Hi All:
   This is my first post here.  I've never had a problem I couldn't fix
with cygwin-x before.
   Here is the deal:

I just bought a new PC with windows 7 64 bit, build number 7600,
version 6.1.
I downloaded a fresh install of cygwin and cannot get cygwin-x xterm
running.  Cygwin version is 1.7.0(0.218/5/3)

I tried running the cygwin-x XWin Server shortcut command line from a cmd
window to get the error output:

C:\cygwin\bin\run.exe /usr/bin/startxwin.bat


try this -- edit /usr/bin/startxwin.bat and put a 5 second sleep between the call to Xwin and the call to 
xterm, and see what happens



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Cygwin/x window no longer appears

2009-11-18 Thread Reid Thompson

Timares, Brian (Patriot) wrote:

On Friday, November 13, 2009 Csaba Raduly wrote:
On Thu, Nov 12, 2009 at 11:16 PM, Olivia Cheronet wrote:

I have recently started to work with Cygwin/X.
Until now, I have been starting Cygwin/X by using startxwin.bat in
the 

Cygwin bash shell. Everything seemed to be working fine. However, it
has 

now stopped working...
When I type startxwin.bat in the Cygwin shell, the normal
startxwin.bat - starting on Windows NT/2000/XP/2003
appears. Yet, the window which used to appear no longer does. I am
really 

not too sure what to do about this, given that I have not


in startxwin.sh or startxwin.bat, which ever you use, add a call to
sleep 5 between the call to Xwin and the call to xterm ... and see what 
effect it has

i.e. assuming startxwin.sh ...
change

XWin -multiwindow -clipboard -silent-dup-error 


# Startup an xterm, using bash as the shell.

xterm -e /usr/bin/bash -l 


to

XWin -multiwindow -clipboard -silent-dup-error 

sleep 5
# Startup an xterm, using bash as the shell.

xterm -e /usr/bin/bash -l 




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Cygwin error

2009-11-18 Thread Reid Thompson

baseball07 wrote:

Thank you for the suggestion.  Could you please type out the syntax.  I'm a
newbie to Linux code.  Thank you very much.



ssh -Y usern...@host


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Even after I install ALL the 'Devel' packages, still receive no acceptable C compiler found in $PATH error

2009-11-09 Thread Reid Thompson

Chip Panarchy wrote:

Hello World!!!

I've installed all the Devel packages, plus a few extra.

However, whenever I try to compile a Linux tool with: ./configure, I
get the following output;

c...@panarchy /cygdrive/n/rancid-2.3.2
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
configure: WARNING: `missing' script is too old or missing
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gmake... no
checking for make... /usr/bin/make
checking whether /usr/bin/make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/cygdrive/n/rancid-2.3.2':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

Here is an ls of my /usr/bin folder: http://pastebin.com/m3da9e20d

Please tell me how I can get rancid to compile through cygwin.

Thanks in advance,



my first step would be to remove the mingw and then re-run setup.exe, 
re-installing the required packages...
it configures fine for me.  I don't get this warning either -  configure: 
WARNING: `missing' script is too
old or missing

http://pastebin.com/m6e134682


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



RE: How to open a standalone xterm

2009-10-28 Thread Reid Thompson
On Wed, 2009-10-28 at 11:49 -0700, Mike Ayers wrote:
  From: cygwin-xfree-ow...@cygwin.com [mailto:cygwin-xfree-
  ow...@cygwin.com] On Behalf Of Joel Gwynn
  Sent: Wednesday, October 28, 2009 8:27 AM
 
 
  And now, sporadically, when I run startxwin.sh, sometimes it works, ie
  opens up the xterm, but sometimes some windows open, with text that I
  can't read quickly enough, then go away.  If I close Xwin and try
  again, sometimes it will work, mostly not.
 
   You're not running startxwin twice, right?  That won't work - you must 
 run the xterm command from an existing xterm, a cygwin window, or the xterm 
 icon in the start menu (which can be copied to the quicklaunch bar).
 
   Also, try running bash in an existing xterm to see if the problem is in 
 your .bashrc, i.e. not with xterm or X.
 
 
   HTH,
 
 Mike
 

test this..

in startxwin.sh or startxwin.bat ( whichever one you're calling to start
X ), between the call to start Xwin and the call to start the xterm, add


sleep 5

if that gets you an xterm every time, then decrement 5 until failure,
leave the call in with failure + 1

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: How to open a standalone xterm

2009-10-28 Thread Reid Thompson

Joel Gwynn wrote:

Ha!  That seems to do it.  Although I also have to wait a bit between
closing the xwin window and restarting, but that's not so bad.  I
guess there's some process that takes awhile to exit.


possibly having to wait for the X server socket to completely free up between 
between shutdown and restart

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Bash - IF Statement

2009-10-27 Thread Reid Thompson
On Tue, Oct 27, 2009 at 01:01:38PM -0700, briglass111 wrote:
 
 I am trying to write an IF Statement in Bash, but I am having issues. It
 doesn't like the following format:
 
 echo yes or no?
 read T
 
 if [$T=y];
 then
 echo YES
 fi
 
 .. It also doesn't like the following alternatives:
 
 if [$T=y];
 if [$T==y];
 if [$T==y];
 if $T=y;
 if [[$T=y]];
 
 etc..
 
 It says: 
 y=y: command not found
 
 Ideas?
 -- 
 View this message in context: 
 http://www.nabble.com/Bash---IF-Statement-tp26084169p26084169.html
 Sent from the Cygwin list mailing list archive at Nabble.com.
 
 
 --
 Problem reports:   http://cygwin.com/problems.html
 FAQ:   http://cygwin.com/faq/
 Documentation: http://cygwin.com/docs.html
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 

try
 if [ $T = y ];

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Bad XTerm Vim coloring

2008-11-24 Thread Reid Thompson
On Mon, 2008-11-24 at 11:34 -0500, Nick Deubert wrote:
 Hey everyone,
 First off thanks for your hard work on cygwin/X it is very
 appreciated. I upgraded to the new Xorg last week and I have had one

you didn't mention whether you'd ran setup.exe and re-installed vim --
perhaps one, or more, of vim's startup files got corrupted during the
update...???

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: can any body help me to solve the permission denied problem

2008-10-13 Thread Reid Thompson
On Sun, 2008-10-12 at 18:17 -0700, andylai wrote:
 can anybody help me to solve this problem??? thk
 
 andylai wrote:
  
  don't not why after i run the command below:
  tar -zxf
  cygdrive/d/toolchains/cygwin/sdcc-2.7.0-2sensinode_banked-cygwin.tar.gz
  the condition of cannot open: permission denied will come out like the
  picture below:
  can anybody here help me solve the problem ??thk 
   http://www.nabble.com/file/p19902675/cygwin.jpg 
Do any of these .asm/.o files already exist?
If so, what are there permissions?
Does any other app already have them 'open'?


--
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/



Re: Problem to open big selfextracting Zip files from bash - starting from scratch :-)

2008-10-10 Thread Reid Thompson
Dirk Napierala wrote:
, but what I do not understand is
 that after
 we found that only replacing the dll cause the prob and fix it again
 when reverted, why isn't that enough
 to troubleshoot the dll now? Also because it does not work with the 1.7
 version.
 

I think if you'll go back through the responses you'll find where someone noted 
that the number of changes to cygwin.dll between
versions 1.5 and 1.7 is quite large, meaning that just tying it down to 
cygwin.dll doesn't make the effort of troubleshooting a
minor endeavor.

- reid

--
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/



Re: RE:Using mutt to sendmail via remote SMTP

2008-08-10 Thread Reid Thompson
On Mon, 2008-08-11 at 04:32 +0700, bjoe wrote:
 Thank for the answer,
 
 I finally find tutorial in http://www.andrews-corner.org regarding this 
 subject, and successfully sending this mail with mutt. I just want to share 
 this link.
 
 This tutorial point me to using mutt as MUA, msmtp as MTA to send mail, 
 fetchmail to retrieve mail from POP server and procmail to drop packet to 
 local mailbox. 
 
 The problem is I still can't read some mail, with text/html unsupported 
 messages, I know this newbie question but maybe someone in this list can 
 point me a solutions.   
 
  

these links ( and more, google mutt view html email ) describe how to
configure mutt to read html email (read the whole page, or search the
page for html or mime )

http://www.debian-administration.org/articles/75


http://home.nyc.rr.com/computertaijutsu/mutt.html

http://www.mutt.org/doc/manual/manual-5.html




--
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/



Re: How to replace default bash window with rxvt / bash shell?

2008-08-08 Thread Reid Thompson
On Fri, 2008-08-08 at 10:17 -0700, CheapLisa wrote:
 I want to replace the default cygwin bash window with something where I can
 have multiple tabs

 

may be of interest/use 
http://en.poderosa.org/

--
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/



Re: RE:Using mutt to sendmail via remote SMTP

2008-08-07 Thread Reid Thompson
On Fri, 2008-08-08 at 00:43 +0700, bjoe wrote:
 n 2008-08-03, Spiro Trikaliotis [EMAIL PROTECTED] wrote:
   Hello,
  
   * On Sun, Aug 03, 2008 at 04:56:56PM +0700 Bayu Adiwibowo wrote:
   I using thunderbird to send this mail, recently i found that I can run
   cygwin with my USB, so I wonder how to use cygwin MUA like mutt to
   sending mail via gmail. As far in my research mutt look for sendmail
   program in exim or other smtp program running in localhost to sending
   mail, and this is not suite to my purpose.
  
   Yes, that's the way mutt works. mutt still uses the distinction between
   MUA (mail user agent, that is, mutt itself) and MTA (mail transfer
   agent, that is, something like sendmail, exim, and-so-on).
  
   Maybe anyone in this list can point me a way to make mutt sending mail
   with remote SMTP server?
  
   You need to install an MtA like sendmail, exim, postfix, or similar. You
   may, however, use a very simple one like ssmtp (it is available with
   cygwin). This might be your easiest solution.
  
   HTH,
  Spiro.
  
 
I use mutt with exim ( via remote smtp ) and it works really good.
You can choose ssmtp as substitute for exim.
 
 thank for this reply
 When i googling i found sugestion to use mmail, but i still have trouble 
 connecting to gmail, can't anyone point me how to configure, right now i test 
 to send via gmail so i hope this mail success sending to mailing list
 
 

http://mail.google.com/support/bin/answer.py?hl=enanswer=75725

configure your gmail account re imap, then use mutt + imap to send
receive email.

--
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/



Re: Cygwin Mail and Exchange Server

2008-05-19 Thread Reid Thompson
I generally use mutt on the command line

ssmtp must still be configured and you need to answer YES to linking
sstmp to sendmail

$ mutt -x -s the subject [EMAIL PROTECTED]

$ mutt -x -s the subject -a /path/to/file/to/attach  [EMAIL PROTECTED]

$ (uuencode afile afile) | mutt -x -s subject [EMAIL PROTECTED]

etc,etc

see the mutt page on the web for more info.

I often use cygwin mutt to read my exchange mail via imap when other email 
clients aren't available.

reid

On Mon, 2008-05-19 at 12:28 +, Ronald Fischer wrote:
 Dave Korn dave.korn at artimi.com writes:
  
   at a customer's site, I would like to be able to send email from
   bash scripts. The setup of the software is pretty standard: Usually
   mail is sent and read using Outlook, and there is an Exchange server
   lurking somewhere to do the job. What do I have to do in such an
   environment in order to be able to send mail from cygwin?
  
You need to ask your admins for POP and SMTP access details of your
  exchangeserver, 
 
 I guess in my case (sending only) I just need SMTP. Or is it necessary
 that ssmtp.conf always contains POP too? And, AFIK, the access method
 to the exchange server is not POP, but IMAP...
 
  then you'd probably enter those details into your
  /etc/ssmtp/ssmtp.conf (or equivalent depending what mailer you're using).
 
 Is there a simpler command line utility for sending mail - I mean, 
 simpler than ssmtp -, which you could recommend?
  
   I thought this is such a common setup that there must be somewhere a
   howto for this subject, but I searched the Cygwin FAQ, the Cygwin
   User Guide, and /usr/doc/cygwin without success. Isn't there a Cygwin
   utility which simply uses the settings in Outlook to send the mail?
  
Nope.  It's not like Microsoft have documented how any of that stuff is
  stored, after all.  
  And since Cygwin is mostly ports of Linux stuff, and
  Linux doesn't have any such things as outlook or exchange server, none of
  the linux software that gets ported is written to even consider it.
 
 Understandable...
 
 Thanks a lot,
 
 Ronald Fischer
 
 
 
 --
 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/
 

--
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/



Re: Cygwin Mail and Exchange Server

2008-05-19 Thread Reid Thompson
On Mon, 2008-05-19 at 12:04 +, Ronald Fischer wrote:
 Hello,
 
 at a customer's site, I would like to be able to send email from
 bash scripts. The setup of the software is pretty standard: Usually
 mail is sent and read using Outlook, and there is an Exchange server
 lurking somewhere to do the job. What do I have to do in such an
 environment in order to be able to send mail from cygwin?
 
 I thought this is such a common setup that there must be somewhere a
 howto for this subject, but I searched the Cygwin FAQ, the Cygwin 
 User Guide, and /usr/doc/cygwin without success. Isn't there a Cygwin
 utility which simply uses the settings in Outlook to send the mail?
 

These types of things can be done from scripts

[EMAIL PROTECTED] ~ $ cat ./testmail.sh
#!/bin/bash

echo this is a script email test | mutt -x -s testscript [EMAIL PROTECTED]

cat testfile | mutt -x -s testscript [EMAIL PROTECTED]



etc, etc


--
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/



Re: FW: How to get scroll bars on initial xterm instance?

2008-04-07 Thread Reid Thompson
On Mon, 2008-04-07 at 12:23 -0700, Siegfried Heintze (Aditi) wrote:
 When I run startx it creates an xterm for me. But this xterm does not have a 
 scroll bar. I like to create xterms with -sl 3000 -sb so I get lots of 
 history. How can I make startx create an xterm with these options?
 Thanks,
 siegfried
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Problem reports:   http://cygwin.com/problems.html
 Documentation: http://x.cygwin.com/docs/
 FAQ:   http://x.cygwin.com/docs/faq/
 

edit startxwin.sh/startxwin.bat




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Konsole or similar in cygwin

2008-03-14 Thread Reid Thompson

google  .Xdefaults
and look at some examples ala
https://engineering.purdue.edu/ECN/Support/KB/Docs/UsingTheXdefaultsFil

http://www.xs4all.nl/~hanb/configs/dot-Xdefaults


On Fri, 2008-03-14 at 09:27 +0100, Danilo Turina wrote:
 I change this stuff by using cmd line arguments, e.g.:
 
 /usr/local/bin/mrxvt -geometry 80x67 -sb -sr -sl 5000 -tnum 2 -tn xterm 
 -cs -stt -bc -b 20 -pixmap '/etc/bgs/Luna.jpg' -vt1.pixmap 
 '/etc/bgs/snow.jpg' -vt2.pixmap '/etc/bgs/clouds.jpg' -e /usr/bin/bash 
 --login -i
 
 but I don't know whether is it possibile to change these attributes via 
 some menu or some other way, better you check the site of the product.
 
 Ciao,
   Danilo
 
 horacioemilio wrote:
  Hi,
  
  I installed and so it but, how can I change colors and background color and
  reduce font size ?
  
  Thanks
  
  
  Danilo Turina-2 wrote:
  horacioemilio wrote:
  Hi,
 
  is it some way to have Konsole in cygwin ?
 
  I like its features like tabs, etc
 
  Thanks in advance
 
  I use mrxvt, you can find it on SourceForge (
  http://sourceforge.net/projects/materm/ ).
 
  Now I must add other text (I think) because the previous e-mail, only 
  composed by the above text, was returned to me with this error:
 
 cygwin@cygwin.com
   SMTP error from remote mailer after end of data:
   host sourceware.org [209.132.176.174]: 552 spam score exceeded 
  threshold
 
  I imagine that if I mention Cygwin and maybe X-Terminal and/or X-Server 
  and, finally, the implementation of multi-terminal on single window, 
  that practically, resemble what screen does in text-mode, maybe I will 
  not recognized as a spammer.
 
  Ciao,
 Danilo
 
 
  --
  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/
 
 
 
  
 
 
 --
 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/
 

--
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/



Re: prevent scroll (or something like that)

2008-01-26 Thread Reid Thompson

Greg Chicares wrote:

On 2008-01-26 11:57Z, electron wrote:

I'm doing an assignment for school and I'm supposes to disassemble a piece
of code with a disasembler. This works just fine but the output asembly code
is to large to fit on the screen. So when i scroll all the way up I can't
read the complete output.


$disassemble binary_file 21 | less

Syntax explained under REDIRECTION in the 'bash' manual:
$man bash


or...
$disassemble binary_file  /path/to/dump.txt 21



--
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/



Re: how to check email through cygwin

2008-01-09 Thread Reid Thompson
On Wed, Jan 09, 2008 at 05:45:39PM +, morgan gangwere wrote:
  thanks, after config can I reply mails by vi in cygwin?
 thats all mutt's job.

 cygwin is almost an OS running on an OS (unix running on windows)
 mutt is like outlook or thunderbird.
heh, more like pine or elm :)

 --
 Morgan gangwere

 Please Excuse TOFU. Gmail/Mobile has no Power.

 Space does not reflect society, it expresses it. -- Castells, M.,
 Space of Flows, Space of Places: Materials for a Theory of Urbanism in
 the Information Age, in The Cybercities Reader, S. Graham, Editor.
 2004, Routledge: London. p. 82-93.

 --
 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/


--
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/



Re: how to check email through cygwin

2008-01-08 Thread Reid Thompson

sun wrote:

hi everyone,

Can I check email of some acount like [EMAIL PROTECTED] in cygwin ?
if that is possible could someone please advise how to config and
reply the mail.

--
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/


run setup.exe again and install mutt, and configure it.

for configuration information see http://www.mutt.org/

--
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/



Re: how to check email through cygwin

2008-01-08 Thread Reid Thompson

sun wrote:

hi everyone,

Can I check email of some acount like [EMAIL PROTECTED] in cygwin ?
if that is possible could someone please advise how to config and
reply the mail.

--
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/

forgot to mention, since you note gmail -- via your gmail account settings you 
can enable imap access, then use mutt to connect to your gmail account via imap.


--
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/



Re: ok, i'm an idiot, so bear with me

2007-12-19 Thread Reid Thompson

rb76543 wrote:

please look at this screen shot and give me a clue. in the file
'make_avr2.txt', the first line says this:
cd /cygdrive/d/cygwin/home/loser/avrdude, but if you look at the last line
of the screen shot, clearly
that directory exists. i've just started working with cygwin, so i'm doing
something stupid, i'm sure:

http://farm3.static.flickr.com/2406/2123020277_87588ea117_o.png

thanks. 


rod

in /cygdrive/d/cygwin/home/loser/ what does

$ ls -l

show?

--
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/



Re: Using XWin.exe to connect to a linux X Server

2007-11-30 Thread Reid Thompson

On Fri, 2007-11-30 at 09:42 -0500, jose isaias cabrera wrote:
 Holger Krull escribio,
 
  jose isaias cabrera schrieb:
 
  Greetings.
 
  I am trying to connect to a Gentoo X Server and it is connecting, but I
  don't seem to be able to open an xterm.  All I get is a full screen
  without anything.  I am running this command:
 
  XWin -query d-tuxedo
 
  Are you sure XDMCP is enabled on this server?
  Try Xwin -query gentoo.numeric.ip -from windows.nummeric.ip
 I did that and I get the same thing.  I get the Cygwin X Window with the 
 title,
 
 Cygwin/X - d-tuxedo.na.xde3.xerox.org
 
 Is there a way to add a menu on the X in the taskbar?  I see that there is a 
 Show Cursor, an About and Exit.  Can I add an XTerm to that?  Because I 
 think I am connecting, but I am not getting anything yet.
 
 thanks.
 
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Problem reports:   http://cygwin.com/problems.html
 Documentation: http://x.cygwin.com/docs/
 FAQ:   http://x.cygwin.com/docs/faq/
 
from http://x.cygwin.com/features.html

Configurable Tray Icon Menu - Menu entries can be added to the
configurable tray icon menu via a .XWinrc file in the user's home
directory, or via a system.XWinrc file in /usr/X11R6/lib/X11.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Using XWin.exe to connect to a linux X Server

2007-11-30 Thread Reid Thompson

On Fri, 2007-11-30 at 09:38 -0500, jose isaias cabrera wrote:
 
  Hi,
 
  DISPLAY on the Linux box must be set to the IP address of the cygwin box.
 H...
 
  But DISPLAY on the cygwin box must be set to either localhost or the IP 
  address of this machine.
 Ok, this one was set to d-tuxedo, which I did not change.  But I just set it 
 back to localhost:0.0 and still happens.
 
  You also must have some method to communicate between both machines. I 
  always used telnet as it was all locally done. You can also take SSH if 
  you do not know who else listens between.
 I do.  I am able to connect to d-tuxedo through ssh, etc.  I just want to 
 use X with cygwin to get to it.
 
try ssh -Y [EMAIL PROTECTED]

or ssh -X [EMAIL PROTECTED]

and then try to start an xterm

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Best AVS to use with cygwin

2007-10-15 Thread Reid Thompson
I've yet to have any problems with 

http://www.avira.com/en/products/personal.html


reid
On Mon, 2007-10-15 at 13:50 -0400, Olivier Langlois wrote:
 Hi,
 
 I am currently using Kaspersky AVS but I am looking for a replacement because 
 using it with Cygwin brings my system unstable whenever a bunch of child 
 processes are spawn (ie: find . -name '*.h' -exec grep -l pattern {} \;'. 
 Someone has even put the blame on Cygwin on their forum:
 
 http://forum.kaspersky.com/lofiversion/index.php/t48713.html
 
 I do not agree with his assessment because:
 
 1- I have tried the proposed fix and it didn't change anything
 2- I am having the same instability problem with their AVS when I compile big 
 projects (ie: ACE Framework) with Visual Studio.NET 2003.
 3- Cygwin is running very smoothly with previously used AVS such as McAfee 
 and Trend Micro OfficeScan.
 
 Before doing my AVS switch, I just wanted to ask cygwin users and/or 
 maintainers which AVS they are recommending and that is known to have no 
 compatibility problems with Cygwin.
 
 Thank you,
 Olivier Langlois
 
 
 --
 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/

--
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/



Re: Problems with freshclam

2007-09-30 Thread Reid Thompson

Angelo Graziosi wrote:


Rene' Berber wrote:


The recommended way is to use UNIX socket (the default is /tmp/clamd.socket),


I have

  LocalSocket /tmp/clamd.socket

Does this mean I have UNIX socket ?

i.e. /tmp/clamd.socket == UNIX socket ???

yes

--
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/



Re: math packages

2007-09-17 Thread Reid Thompson
not sure if qalculate will compile or meet your needs, but it may be
worth a look


On Mon, 2007-09-17 at 13:49 -0500, Cole Radcliffe wrote:
 Is there any math package that I can install for free on cygwin that
 will allow me to do symbolic algebra and symbolically solve DEs and
 symbolically integrate better than my TI-89? Apparently Octave only
 produces numeric solutions.
 
 --
 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/

--
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/



Re: How to configure VIM to generate files with LF line endings

2007-09-13 Thread Reid Thompson
add 
set fileformat=unix
to vimrc/gvimrc

On Thu, 2007-09-13 at 11:39 -0700, Michael Giroux wrote:
 How do I configure VIM to write files using LF for line endings?
 
 I've tried man vi, and man vimrc and man .vimrc, without success.
 
 Michael
 
 --
 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/

--
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/



Re: scroll bars

2007-09-06 Thread Reid Thompson

On Thu, 2007-09-06 at 00:22 -0500, Cole Radcliffe wrote:
 %RUN% xterm -fn 10x20 -scrollbar -e /usr/bin/bash -l does not work for me
 
 I also tried it with -scrollBar
 

That's because -scrollbar is not a valid command line parameter tor
xterm.

%RUN% xterm -fn 10x20 -sb -sl 2500 -e /usr/bin/bash -l 


see xterm -help

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: scroll

2007-09-06 Thread Reid Thompson

Reid Thompson wrote:

Cole Radcliffe wrote:

What are the XWin server options you are using with that Reid? Mine
which are %RUN% XWin -clipboard -silent-dup-error -multiwindow give
some weird object that looks like a scrollbar on the side but it does
not allow you to scroll


my options are the same - XWin -multiwindow -clipboard -silent-dup-error 


What exactly is weird? Email me directly a png of the xterm window.

click in the terminal window and hold down your enter key until your 
buffer starts scrolling up -- then you can use the left and right mouse 
buttons to scroll up/down the xterm buffer by clicking above/below the 
scrollbar slider ( i.e. you will NOT be able to scroll until you've 
ENTERED enough to cause buffering to occur



you may prefer rxvt over xterm
the options are pretty much the same

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: scroll

2007-09-06 Thread Reid Thompson

Cole Radcliffe wrote:

What are the XWin server options you are using with that Reid? Mine
which are %RUN% XWin -clipboard -silent-dup-error -multiwindow give
some weird object that looks like a scrollbar on the side but it does
not allow you to scroll


my options are the same - XWin -multiwindow -clipboard -silent-dup-error 


What exactly is weird? Email me directly a png of the xterm window.

click in the terminal window and hold down your enter key until your 
buffer starts scrolling up -- then you can use the left and right mouse 
buttons to scroll up/down the xterm buffer by clicking above/below the 
scrollbar slider ( i.e. you will NOT be able to scroll until you've 
ENTERED enough to cause buffering to occur



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: font and screen size

2007-09-05 Thread Reid Thompson
how bout -fn 12x24


On Wed, 2007-09-05 at 13:26 -0500, Cole Radcliffe wrote:
 I tried to change the font size with the option -fs after the xterm
 command however xterm did not recognize that option even though it
 appeared in man xterm. I am guessing that it was just not compiled
 into the cygwin version of xterm. Is there any other way to accomplish
 this. I could just set the -fn option which stands for font name
 and use a font that has a large standard size but someone would need
 to explain to me how to set that up!
 
 I just want to get the shell larger in general so it does not hurt my
 eyes. Maybe there is another way just to scale everything up?
 
 Thanks.
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Problem reports:   http://cygwin.com/problems.html
 Documentation: http://x.cygwin.com/docs/
 FAQ:   http://x.cygwin.com/docs/faq/

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: font and screen size

2007-09-05 Thread Reid Thompson
run xlsfonts and pick one

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: font and screen size

2007-09-05 Thread Reid Thompson

Cole Radcliffe wrote:

OK. I think it was not working because I was just appending options to
 -e /usr/bin/bash -l in the startx batch file which for
some reason does not work for any option I append (the shell just dies
quickly).

One interesting thing I found is that if I replace the %RUN% xterm -e
/usr/bin/bash -l in the startx batch file with xterm -fn 12X24 I
get the large font size however it opens onto my Windows desktop not
my cygwin hierarchy which is in a different drive. It opens into the
correct drive but with the small font with %RUN% xterm -e
/usr/bin/bash -l.

How can I get it to open with the large font size in the correct directory?

On 9/5/07, Cole Radcliffe [EMAIL PROTECTED] wrote:

That is weird. I do not have a .Xdefaults in my home directory. I do
have a .Xauthority-c file, which is empty. I downloaded it pretty
recently, maybe we are working with different versions.

On 9/5/07, Angelo Graziosi [EMAIL PROTECTED] wrote:

In my $HOME/.Xdefaults I have:

try
%RUN% xterm -fn 12x24 -e /usr/bin/bash -l

anything after the -e /usr/bin/bash is being passed as a parameter to 
bash, not xterm...


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: scroll bars

2007-09-05 Thread Reid Thompson

Cole Radcliffe wrote:

Thanks for the help with the font size. Now why does why does %RUN%
XWin  -silent-dup-error -scrollbars give me a terminal with no scroll
bars?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/


the scrollbars param for XWin is not the same as the scrollbar param for 
terminals...


xterm ( and other terminal emulators take a 'scrollbar' variant parameter )

EX.
xterm -sb -sl 2500
rxvt -sb -sl 2500

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Help with mount..

2007-09-04 Thread Reid Thompson
echo 'alias cdbar=cd /cygdrive/foo/bar'  .bashrc

On Tue, 2007-09-04 at 07:03 -0700, gms5002 wrote:
 Thanks for the reply Steve.   What I am actually trying to achieve here is to
 be able to access a certain folder (say C:\foo\bar) by typing cd /bar at the
 command prompt.
 
 
 
 Steve Holden wrote:
  
  gms5002 wrote:
  Hi - I am having a problem getting mount to work in cygwin.  Here is what
  I
  am trying to do:
  
  [EMAIL PROTECTED] ~/test
  $ pwd
  /home/Greg/test
  
  [EMAIL PROTECTED] ~/test
  $ mkdir foo
  
  [EMAIL PROTECTED] ~/test
  $ mkdir bar
  
  [EMAIL PROTECTED] ~/test
  $ vi bar/test
  
  [EMAIL PROTECTED] ~/test
  $ ls -l bar
  total 0
  -rw-r--r-- 1 Greg None 0 Sep  3 23:48 test
  
  [EMAIL PROTECTED] ~/test
  $ mount bar foo
  mount: foo: Invalid argument
  
  [EMAIL PROTECTED] ~/test
  $ mount /home/Greg/test/bar/ /home/Greg/test/foo/
  mount: /home/Greg/test/foo/: Invalid argument
  
  
  any ideas?
  
  Well you could start by explaining what you think those mounts should 
  have done. Are you trying for the equivalent of a loopback mount?
  
  Remember that mount is one of the utilities that differs substantially 
  from its Linux/Unix counterpart. The man page starts:
  
  NAME
  mount  -  Display  information  about  mounted  filesystems, or 
  mount a
  filesystem
  
  SYNOPSIS
  mount [OPTION] [win32path posixpath]
  
  but it doesn't give any specifics of what a win32path is supposed to be 
  and whether relative paths constitute acceptable win32 paths. In 
  particular the section that reads
  
  
  Limitations:  there  is  a  hard-coded limit of 30 mount points.  Also,
  although you can mount to pathnames that do not start with  /,  there
  is no way to make use of such mount points.
  
  
  should give you some clue that what you are trying to achieve should 
  probably be done some way other than what you have tried so far.
  
  regards
Steve
  -- 
  Steve Holden+1 571 484 6266   +1 800 494 3119
  Holden Web LLC/Ltd   http://www.holdenweb.com
  Skype: holdenweb  http://del.icio.us/steve.holden
  --- Asciimercial --
  Get on the web: Blog, lens and tag the Internet
  Many services currently offer free registration
  --- Thank You for Reading -
  
  
  --
  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/
  
  
  
 

--
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/



Re: Simple shell script not working

2007-07-30 Thread Reid Thompson

On Mon, 2007-07-30 at 10:07 -0700, on behalf of zip184 wrote:
 This is the 2-line shell script I'm trying to run:
 
 
 #! /bin/sh
 
 touch test.txt
 
 
 The privledges are set to 777
 
 I get the error output line:   bash: $'\r': command not found 
 for each command I put in the script, including cd, touch, ls, etc.  Echo is
 the only one that works for some reason.  Anybody have any ideas on how to
 fix this?

$ dos2unix name-of-2-line-script

--
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/



Re: xterm scrollbar...PLEASE

2007-07-17 Thread Reid Thompson
sorry, -sr is rxvt try

 $ xterm -sb -ls -sr -rightbar 1000 -bg CornflowerBlue -fg LemonChiffon

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: xterm scrollbar...PLEASE

2007-07-17 Thread Reid Thompson
try 
$ xterm -sb -ls -rightbar -sl 1000 -bg CornflowerBlue -fg LemonChiffon


What does that give you?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: which packages are needed for simple bashing

2007-07-12 Thread Reid Thompson

On Thu, 2007-07-12 at 08:57 -0700, on behalf of wardhj wrote:
 Greetings.
 
 I just want basic functionality: a shell (say, bash) and basic unix commands
 like ls, wc, diff, vi, cd, and find.
 
 The target machine (on which I want to install Cygwin) has no network
 connection, so I will have to download the packages onto my flash, and then
 carry the flash to my Windows machine.
 
 I can't put the entire distribution onto my flash drive, so I need a list of
 packages to give the the basic functionality described above.  How can I
 obtain/generate such a list?
 
 I've search this forum and also Googled without quick results.
 
 Thx,
 Herbert
http://cygwin.com/packages/

--
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/



Re: cygwin terminal question

2007-07-06 Thread Reid Thompson

On Fri, 2007-07-06 at 08:57 +0200, Jan Moesen wrote:
  e.g. I can only see the last 200 lines in my terminal.
 If you are talking about the default console window (e.g. bash), you can 
 change its properties in the window's system menu. Click on the icon in 
 the title bar, choose Properties, go to the Layout tab and change the 
 screen buffer size.
 
 Hope that helps,
 
 Jan!
 
 --
 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/

If you're talking about rxvt or xterm, etc, then pass the appropriate
command line parameter when invoking, or set it in .Xdefaults..


rxvt -sl 2500 = scroll length 2500
or add to .Xdefaults = Rxvt.saveLines: 2500


xterm -sl 2500
or .Xdefaults = Xterm.savelines: 2500

--
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/



Re: cygwin terminal question

2007-07-06 Thread Reid Thompson
in your home directory do:

$ vi .Xdefaults

add the lines and write and quit.


http://cygwin.com/ml/cygwin-xfree/2001-q2/msg01954/.Xdefaults

The man pages for xterm and rxvt list .Xdefaults values available
also...

reid
On Fri, 2007-07-06 at 09:35 -0700, ppanta wrote:
 Thanks,
 I manage to fix the layout problem but can't find the .xdefaults file.
 If you can point me to the location of the file or a good tutorial on this
 subject, please let me know.
 
 Thx again,
 pp
 
 
 
 Reid Thompson wrote:
  
  
  On Fri, 2007-07-06 at 08:57 +0200, Jan Moesen wrote:
   e.g. I can only see the last 200 lines in my terminal.
  If you are talking about the default console window (e.g. bash), you can 
  change its properties in the window's system menu. Click on the icon in 
  the title bar, choose Properties, go to the Layout tab and change the 
  screen buffer size.
  
  Hope that helps,
  
  Jan!
  
  --
  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/
  
  If you're talking about rxvt or xterm, etc, then pass the appropriate
  command line parameter when invoking, or set it in .Xdefaults..
  
  
  rxvt -sl 2500 = scroll length 2500
  or add to .Xdefaults = Rxvt.saveLines: 2500
  
  
  xterm -sl 2500
  or .Xdefaults = Xterm.savelines: 2500
  
  --
  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/
  
  
  
 

--
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/



Re: bashrc question

2007-06-12 Thread Reid Thompson
dos2unix .bashrc

On Tue, 2007-06-12 at 15:30 -0400, Stephen H. Dawson wrote:
 Hello,
  
 
 I am running the latest version of Cygwin on XP Pro.  Since day 1, I have
 been getting an error message at startup, bash: $'\r': command not found.
 Working with a friend, he said I need a bashrc file.  He generated and put
 into the C:\Program Files\copSSH\home\MY_USER_ACCOUNT folder.  Bash is not
 reading this file.
  
 Please assist.
 
 
 Thanks.
 
 
 --
 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/

--
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/



RE: Java

2007-06-11 Thread Reid Thompson
On Mon, 2007-06-11 at 11:05 -0700, Brian D. McGrew wrote:
 Brian D. McGrew, le Mon 11 Jun 2007 10:53:03 -0700, a écrit :
  However, I need java.  There is a higher level user interface that
  goes on top of our C/C++/X/Motif stuff that's all done in Java.
 
 Could it work with the java support of gcj?
 -
 
 Sadly, no, it won't work with gcj.  I'm a C++ programmer, not Java; but I've 
 been told by the guys that do the Java stuff that gcj does not properly 
 implement the jni.  I don't know how accurate it is; but we've been fighting 
 that battle for three years now and Sun JDK has won.
 
 -brian
 
 --
 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/

What issue(s) are you having with a standard SUN jdk install??

--
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/



RE: Java

2007-06-11 Thread Reid Thompson
On Mon, 2007-06-11 at 11:33 -0700, Brian D. McGrew wrote:
   What issue(s) are you having with a standard SUN jdk install??
 -
 
 None, I was asking if a standard Sun JDK could be installed on cygwin
 and if so, which one?
 
 -brian

ala, Gordon Prieur, I've used at least 1.4 and 1.5 SUN JDK with cygwin.
I can't recall if I've attempted jni functionality though.  I usually
install the JDK at the root disk level,,, C:\jdk1.4, D:\jdk1.5, etc.
then configure JAVA_HOME etc in .bashrc...

--
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/



Re: Multiple Session Question

2007-06-07 Thread Reid Thompson
On Thu, 2007-06-07 at 10:50 -0400, Duane Ellis wrote:
 Hello,
 
 I've got cygwin working well via SSH to single host, single window. 
 I connect via SSH, and run startkde - I get the KDE desktop in one 
 single window. Works great!
 
 How do I connect to a second machine at the same time.
 
 See below for details.
 
 -Duane.
 
 
 For example:
 I login as my self - with ssh  a remote session
 And I login as another person to the same machine.
  In my case, I have two accounts:
   A development account
   And A Test account.
 
 Likewise, I have this situation:
   I login to Machine1 - and it works.
   I login to Machine2 - and it works.
 
 Problem:
   I can only have 1 connection to 1 machine at a time.
   Both should have separate window/display.
 
 I have done this with commercial X11 packages, but not CygwinX.
 
 This does not seem to work, and I can't seem to find in the user docs
 any thing that reasonably describes some things.
 
 (1) Yes, I have tried using a different display, ie:
 127.0.0.1:0.0
 And 127.0.0.1:1.0
 
   That does not work when I have 2 sessions.
   The two displays work - independent of each other
 
 (2) I'm not sure what is going on with the /tmp/.X11-unix/dir
 And can't find docs for it - I suspect it is part of the problem.
  
 (3) I'm not sure what the --screen options do for the Xwin program.
 
 The script I to start the session (via SSH and public keys) is below,
 
 The difference between the two is WHO and DISPLAY.
 
 The script below - deletes the old /tmp/.X11-dir, which I know is a bad
 thing with 2 sessions. I have tried not deleting it - that does not seem to
 help.
 
 
 #!/bin/bash
 
 TARGET=linxbox
 
 WHO=duane
 #WHO=testaccount
 
 export DISPLAY=127.0.0.1:0.0
 #export DISPLAY=127.0.0.1:1.0
 export PATH=/usr/X11R6/bin:$PATH
 export XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults
 export XCMSDB=/usr/X11R6/lib/X11/Xcms.txt
 export XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
 export XNLSPATH=/usr/X11R6/lib/X11/locale
 
 rm -rf /tmp/.X11-unix
 
 XWin -clipboard -silent-dup-error 
 
 echo STARTING KDE REMOTEL
 ssh -l $WHO $TARGET startkde 
 echo DONE RUNNING KDE REMOTELY
 
 exit
 
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Problem reports:   http://cygwin.com/problems.html
 Documentation: http://x.cygwin.com/docs/
 FAQ:   http://x.cygwin.com/docs/faq/


try

#!/bin/bash

TARGET=linxbox
TARGETONE=linxbox1

WHO=duane
WHO1=testaccount

export DISPLAY=127.0.0.1:0.0
#export DISPLAY=127.0.0.1:1.0
export PATH=/usr/X11R6/bin:$PATH
export XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults
export XCMSDB=/usr/X11R6/lib/X11/Xcms.txt
export XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
export XNLSPATH=/usr/X11R6/lib/X11/locale


XWin -clipboard -silent-dup-error 

echo STARTING KDE REMOTEL
ssh -l $WHO $TARGET startkde 
ssh -l $WHO1 $TARGETONE startkde 
echo DONE RUNNING KDE REMOTELY

exit

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: running vim on cygwin

2007-06-05 Thread Reid Thompson
On Tue, 2007-06-05 at 07:27 -0700, Kamaraju Kusumanchi wrote:
 Hi
 
 I installed vim 7.1 via cygwin on Windows XP machine. However, when I run
 vim on the bash shell of cygwin, I am getting the following error.
 
 E558: Terminal entry not found in terminfo
 'cygwin' not known. Available builtin terminals are:
 builtin_riscos
 builtin_amiga
 builtin_beos-ansi
 builtin_ansi
 builtin_pcansi
 builtin_win32
 builtin_vt320
 builtin_vt52
 builtin_xterm
 builtin_iris-ansi
 builtin_debug
 builtin_dumb
 defaulting to 'ansi'
 
 I initially asked about this on the vim mailing list 
 http://tech.groups.yahoo.com/group/vim/message/80886
 
 In that discussion, it was determined that my terminfo database is not 
 properly installed and readable.
 
 For example, if I do
 bash-3.2$infocmp
 infocmp: couldn't open terminfo file .
 
 However, I do not know how to solve the problem. The termcap 20050421-1, 
 terminfo 5.5_20061104-1 are already installed on this system via cygwin.
 
 All the software is installed via cygwin installer using the 
 http://mirrors.xmission.com mirror. I have neither installed any source 
 packages nor compiled any software on this system. All the packages that were 
 installed are binary.
 
 The output of
 
 cygcheck -s -v -r 21 | tee cygcheck.out
 
 is attached in this email. Please let me know if any other info is needed.
 
 Any suggestion/ideas would be really appreciated.
 
 thanks
 raju
 

Sorry, I thought that i'd replied to the vim mailing list request to run
cygwin's setup.exe again and re-install the problem packages...

--
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/



Re: Is cygwin much slower on Core 2 Duo

2007-06-04 Thread Reid Thompson
On Mon, 2007-06-04 at 12:08 +0200, Nenad Antic (KI/EAB) wrote:

 Anyway, today I removed the Sunbelt Personal Firewall (as it's called 
 now), and tried reinstalling PHP 5.2.2. (This might seem a bit odd, but 
 it can serve as a benchmark here. The installation creates subshells at 
 least four levels deep.) Before, as I wrote, it took 43 minutes. Now 
 after removing the firewall it takes 10 minutes. When disabling 
 antivirus (Kaspersky) it takes less than 5 minutes. My computer is 
 snappy again!
 
 Even some other minor oddities when booting up seem to be gone. Overall, 
 things seem to back to normal again. Except now I have to find a working 
 firewall again. Any recommendations anyone?
 


http://www.filseclab.com/eng/products/firewall.htm may be worth a look 

--
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/



Re: IDE for cygwin

2007-05-24 Thread Reid Thompson

DePriest, Jason R. wrote:

vim with compatibality turned off?



+1

--
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/



Re: Adding to a windows zip file without zip.exe

2007-05-16 Thread Reid Thompson
On Wed, 2007-05-16 at 15:17 -0500, DePriest, Jason R. wrote:
 On 5/16/07, Chadwick  wrote:
 
 
  Cygwin is currently installed on over a hundred windows 2003 servers, and is
  used to do some admin tasks as well as to pull files from the servers on a
  daily basis via ssh.  One of the files pulled from each server is a windows
  ZIP file.
 
  I want to add an extra file to this ZIP file using a script.  I looked at
  both DOS batch scripts and cygwin shell scripts but have run into problems
  because the cygwin installed on these boxes doesnt contain ZIP.exe, and the
  PKZIP.exe I would used with a batch script is so old it only accepts 8.3
  filenames.
 
  Updating the servers with new cygwin or command line packages is not an
  option at this point.
 
  That being said, I am a huge cygwin fan and am not willing to give up on a
  shell script as my solution quite yet.
 
  The cygwin version on the servers does have gzip, gunzip, bzip2, bunzip2,
  and unzip.
 
  Unfortunatly I have as yet been unsucceful in using these tools to add a
  file to my windows zip archive.
 
  Any suggestions?
off the wall option -- do the servers have the java 'jar'  application?



--
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/



Re: Adding to a windows zip file without zip.exe

2007-05-16 Thread Reid Thompson
On Wed, 2007-05-16 at 15:29 -0500, René Berber wrote:
 Chadwick wrote:
 
  Cygwin is currently installed on over a hundred windows 2003 servers, and is
  used to do some admin tasks as well as to pull files from the servers on a
  daily basis via ssh.  One of the files pulled from each server is a windows
  ZIP file.
  
  I want to add an extra file to this ZIP file using a script.  I looked at
  both DOS batch scripts and cygwin shell scripts but have run into problems
  because the cygwin installed on these boxes doesnt contain ZIP.exe, and the
  PKZIP.exe I would used with a batch script is so old it only accepts 8.3
  filenames.
  
  Updating the servers with new cygwin or command line packages is not an
  option at this point.
 [snip]
  Any suggestions?
 
 Use java, specifically `jar` which is just a fancy unzip-then-call-java 
 thingy, 
 and it also does just work as zip (with tar like use).
 
 Just do:
 
 jar -h
 jar -tvf your.zip
 jar -cvf another.zip files...
 
 Remember to use only DOS/Windows paths.

jar -uvf your.zip  the_new_file

--
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/



Re: Xterm, rxvt, mrxvt, etc....

2007-05-08 Thread Reid Thompson

Charles Wilson wrote:


Sigh.  cygwin's rxvt is not broken.  It works for me, and about 2000 
others.  


+1 --I have been using cygwin  rxvt for several years (Xwin and Win) -- 
has fulfilled every terminal need that I have.

kudos to the 'maintainer'??.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Background-color of bash

2006-10-11 Thread Reid Thompson
On Wed, 2006-10-11 at 03:45 -0400, -Patrick wrote:
 This may seem trivial to some, but at least to me it affects
 productivity. I would like to know how I can change the background-color
 of the X- bash shell. So when I do 'startx' at the cygwin shell, I get
 the X terminal, which leads to programs like ddd, emacs etc. etc. This
 terminal's background is default to the color white. How do I change
 this? Further, I would like to change the colors of directories and
 executables for easier identification.
 
 I apologize if this seems like a ridiculous request, but this type of
 stuff affects the speed in which I can be productive; recognizing easy
 to spot files and multitasking in general, etc etc.
 
 Thank you and take care,
 -Patrick
 
 
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Problem reports:   http://cygwin.com/problems.html
 Documentation: http://x.cygwin.com/docs/
 FAQ:   http://x.cygwin.com/docs/faq/
 

man xterm

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



RE: Background-color of bash

2006-10-11 Thread Reid Thompson
On Wed, 2006-10-11 at 20:18 +0100, Simon Crombie wrote:
 Thanks for the information about changing the defaults for X-term windows.
 How can I amend this to get scroll bars to appear? And can you set the
 default window size there as well?
 
 Grateful for any advice.
 
 
 
 
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Problem reports:   http://cygwin.com/problems.html
 Documentation: http://x.cygwin.com/docs/
 FAQ:   http://x.cygwin.com/docs/faq/
 
man xterm or

http://www.die.net/doc/linux/man/man1/xterm.1.html


xterm -sb -sl 2600 -rightbar -bg mycolorbg -fg mycolorfg etc, etc, etc

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: loop through folders

2006-06-19 Thread Reid Thompson

smanna wrote:

Hello I am trying to write a script. This is the thing, I want to loop
through all folders in a certain folder and send all files in these folders
to a java program. The files are somewhere in the neighbourhood of 170.000.
the setup is:
Home
cygwin.sh program.javaFolder
  folder
folder  ...
  folder   folder  ...   
folder   folder  ...
  files  files...
files  files...


help would be completely fantastic!!
--
View this message in context: 
http://www.nabble.com/loop-through-folders-t1814116.html#a4945011
Sent from the Cygwin Users forum at Nabble.com.


--
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/

  

try something along the lines of

for dir in `find . -type d`
do
  for file in `ls $dir`
  do
  program.java ${dir}/$file
  done
done

--
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/



Re: Updated: vim-7.0.017-1

2006-06-12 Thread Reid Thompson

Luis P Caamano wrote:

Well, almost.  After updating I realized that gvim is not included :-(
so I ended up with a vim 7.0 and a gvim 6.4, which is not that useful
it seems.  Had to go back to 6.4.

:-(


On 6/12/06, Luis P Caamano [EMAIL PROTECTED] wrote:

On 6/12/06, Corinna Vinschen [EMAIL PROTECTED] wrote:
 I have updated the version of vim on cygwin.com to 7.0.017-1.

 This is the long awaited vim 7.0, latest patchlevel 17.  Cygwin Vim
 still builds from the vanilla sources.


Thank you


--
Luis P Caamano
Atlanta, GA USA





Build it from source...
If anyone can advise how to 'fix' the caveat listed at the bottom, I'd 
appreciate it.


cd /usr/src
mkdir vim
cd vim
svn co https://svn.sourceforge.net/svnroot/vim/vim7
cd vim7
./configure  --enable-rubyinterp --enable-cscope --enable-fontset 
--with-features=huge

make
make install

only one caveat -- when invoking gvim, you have to pass the -f 
parameter, otherwise you will get:
gvim: Fatal IO error 128 (Transport endpoint is not connected) on X 
server :0.0.


thanks,
reid





--
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/



Re: No postnews or other Usenet news utilities?

2006-05-25 Thread Reid Thompson

Dave Korn wrote:

On 24 May 2006 21:48, Bruce Wehr wrote:


  

  Spamming is a sin; it is selfishness and arrogance to the
point of solipsism.  Stop it today.
  

HEY!  One point we can agree on!  Cool!  Maybe you're not such a bad guy
after all!



READ the faq:
http://www.faqs.org/faqs/misc-forsale-faq/posting-ads/
  

OMG, thank you!  A useful, helpful pointer!  THAT'S the kind of stuff I was
looking for in a reply!  I was starting to think that your post had no
substance at all; that it was full of useless flames and nothing else.

Honestly, that document didn't exist when I was selling Pokemon cards
several years ago.  (If it was, I wasn't aware of it, and nobody pointed it
out to me.)  I will read that document, in it's entirety, and heed its
advice.  Thank you again for at least that one piece of useful information.

Now that THAT'S settled, does anyone else have any other USEFUL information
for me?



  Well, since you're not going to spam with it, http://cygwin.com/packages/
lists pine and tin.  I haven't tried either of them myself but lots of people
swear by them so you might like to have a go.


cheers,
  DaveK
  
postnews appears to be a python script -- it *should* work as long as 
you've used setup.exe to install python.


WS-XP-4960[13:28:57]: /usr/local/bin
$ postnews -h
postnews 0.5.3 - (C) 2001 by Michael Waschbuesch

Usage: postnews [OPTIONS] SERVER
Post a usenet article (including headers) from stdin onto SERVER.
Article must at least contain the headers 'From:', 'Newsgroups:' and 
'Subject:',

a newline and a body.

Options: -h, --help  display this text
-v, --verbose   be verbose
-f, --file=FILE read file instead of stdin
-p, --port=PORT port number
--user=NAME user name
--pass=PASSWD   password
-r, --readermodesend MODE READER before authentication



--
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/



Re: Resizing images from CLI

2006-04-28 Thread Reid Thompson

zzapper wrote:

From the talk NG I got this info for CLI image manipulation

requires ImageMagick installed and in path

# from imageMagick

convert -sample 80x40 abbeyparkarch.gif s_abbeyparkarch.gif
lsimg abbeyparkarch.gif s_abbeyparkarch.gif

What I'd like now is to resize an image but preserve it's aspect ratio

how do?

  

see the imageMagick homepage
read the convert man page

--
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/



Re: The right user information

2006-04-07 Thread Reid Thompson

VEGH, Janos wrote:

Hi,

I am trying to use your Win32 X server.
The first step was perfect, I accepted all the default settings,
I proceeded as shown in the step-by step tutorial.

I successfully installed it, I have the bash (DOS) box.
Even I can make a limited use of it, like


[EMAIL PROTECTED] ~
$ ls /
bin  cygdrive  cygwin.bat  cygwin.ico  etc  home  lib  proc  tmp  usr 
var



I cannot go much further, however.
In page 
http://x.cygwin.com/docs/ug/configure.html#configure-cygwin-x-overview

I see
Cygwin/X settings are configured primarily through command-line
parameters passed to XWin.exe. Cygwin/X comes with a file called
startxwin.bat that launches an X Server, a terminal, and a window
manager.

The only batch file I see is
/cygwin.bat

In page
http://x.cygwin.com/docs/ug/using.html#using-starting
I see

startxwin.bat

startxwin.bat - Use a MS-DOS batch file as the startup script. An
example startxwin.bat is included in X-startup-scripts, which is
extracted according to the instructions in the Section called Installing
Cygwin/X in Chapter 2. Run /usr/X11R6/bin/startxwin.bat by
double-clicking it in Windows Explorer.
startxwin.sh

startxwin.sh - Use an sh shell script as the startup script. An example
startxwin.sh is included in X-startup-scripts, which is extracted
according to the instructions in the Section called Installing Cygwin/X
in Chapter 2. Run /usr/X11R6/bin/startxwin.sh in a Cygwin shell:


However, there is no such .bat and no such .sh
Another method here is

startx - Use the standard X Window System startx script with its
attendant ~/.xinitrc configuration file. First you need to create
~/.xinitrc from the template in /etc/X11/xinit/:

[EMAIL PROTECTED] ~
$ cp /etc/X11/xinit/xinitrc ~/.xinitrc

However, in my system


[EMAIL PROTECTED] /etc
$ ls
DIR_COLORSdefaults  networks preremove  protocols  skel
alternatives  group passwd   profileservices   termcap
bash.bashrc   hosts postinstall  profile.d  setup


i.e. even I do not have /etc/X11
Also, commands like xterm, ssh do not work.

What do I wrong or where can I find the right manual?

Please cc me, because I am not (yet) a list member.
Thanks for any info in advance

Janos




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/

  

run setup again and be sure to select the X11 packages

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: getsockname problem

2006-04-07 Thread Reid Thompson

Antonio Querubin wrote:
I've run into a problem where getsockname() doesn't work as expected. 
Below is a test program where it fails under cygwin but runs on any 
other Unix/Linux system.  I searched the mail archives for any 
limitations


#include sys/types.h
#include sys/socket.h
#include netinet/in.h
#include stdio.h

int main() {

  struct sockaddr_in sa;
  socklen_t len = sizeof sa;
  int s, rc;

  s = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
  printf(socket = %d\nlength = %d\n, s, len);

  rc = getsockname(s, (struct sockaddr *) sa, len);
  printf(getsockname rc = %d\nreturned length = %d\n, rc, len);
  perror(getsockname);

  return rc;

}

well,,, not 'any' other linux system...

$ ./getsockname
socket = -1
length = 16
getsockname rc = -1
returned length = 16
getsockname: Bad file descriptor

[EMAIL PROTECTED] /home/rthompso
$ uname -a
Linux wasteland 2.4.18-18.7.x #1 Wed Nov 13 20:29:30 EST 2002 i686 unknown

similar failed response on WinXP
$ ./getsockname
socket = 3
length = 16
getsockname rc = -1
returned length = 16
getsockname: Invalid argument
WS-XP-4960[08:38:46]: /home/rthompso


perhaps a re-coding is in order...




--
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/



  1   2   3   >