FW: How to display Russian Cyrillic and Chinese in Cygwin Bash Console?

2008-09-16 Thread Siegfried Heintze
Is the third time a charm! I hope so. I forgot to turn off HTML again!

I apologize if this query appears again. Since I saw no replies (and not even 
my own posting) after checking my spam filters, I assume it never got to the 
list (Maybe I forgot to turn of HML the first time too!)

Is it possible to do this (display Russian Cyrillic and Chinese) at the cygwin 
console prompt? I hear it is not possible at CMD.EXE prompt. I'm not sure how 
the bash console is implemented in cygwin but if it is running CMD.EXE 
underneath and CMD.EXE cannot do it, the outlook is bleak! I was really 
suprised to learn that CMD.exe cannot do it and I question the accuracy of my 
source.

I did some searching and experimenting and I cannnot figure out how to do it 
with the cygwin bash console. I have posted a similar query on the XFree list 
because I would like to do it both in xterm and the cygwin bash console (is 
there a better name for this since it could be running some other shell?)

Thanks,
Siegfried

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



FW: How to manipulate access control lists (ACL)?

2008-05-05 Thread Siegfried Heintze (Aditi)
I put a query on unix.com and they pointed me to 
http://linux.about.com/library/cmd/blcmdl5_acl.htm .

I don't understand this link: is it describing a bash command?

At bash I type info acl and man acl but I cannot find any description of a 
bash command for adding an ACL to a file. Can I do this from cygwin bash?

Thanks!
Siegfried

--
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 create an icon to startx with no extra CMD.EXE window

2008-04-09 Thread Siegfried Heintze (Aditi)

I use:
E:\cygwin\bin\bash.exe -c -l 'run bash -c -l CYGWIN=server Xwin.exe :0 -query 
192.168.11.1 -from 192.168.11.2 -once  -dpi 120  '

If you don't have cygserver running you should delete CYGWIN=server, if you 
don't need larger fonts delete -dpi 120

Very interesting. Could you kindly point me to the documentation? I removed the 
-query and the -from and the Cygwin=server and it was not working correctly. 
Since I'm running DHCP, I was not sure what to put for those IP addresses you 
are using.

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/



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

2008-04-08 Thread Siegfried Heintze (Aditi)


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?

edit startxwin.sh/startxwin.bat

OK, in c:/cygwin/usr/X11R6/bin/startxwin.sh Line 106 I have:

xterm -e /usr/bin/bash -l -sb -sl 3000 

And in c:/cygwin/usr/X11R6/bin/startxwin.bat Line 151 I now have:

%RUN% xterm -e /usr/bin/bash -l -sb -sl 6000

Adding -sb -sl 6000 did not seem to help.

I also created the file c:\Documents and Settings\a-siehei\.Xresources with 
these contents on a different computer

Xterm.*.saveLines: 3000
Xterm.*.scrollbar: true

This seems to have no effect (affect?) either.

Can someone advise me as to what I am doing wrong?
Thanks,
Siegfried



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

2008-04-07 Thread Siegfried Heintze (Aditi)
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/



RE: Problems compiling grep and friends

2007-10-05 Thread Siegfried Heintze
Dave,
I'm not sure what to do. I see you attached a diffs file. Is there a utility
such as patch that I can use to apply those diffs? What would be the
command?
Thanks,
Siegfried



On 04 October 2007 22:13, Siegfried Heintze wrote:

 Siegfried wrote:
 OK, I tried that. See below for the results. Looks like we have the same
 problem.


  I whipped this up against grep-2.5.1a-3.  It might just apply cleanly to
the
version you're working with; make sure it gets all the $(DESTDIR)/
instances
and changes them to $DDSLASH.  It WFM:



--
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 compiling grep and friends

2007-10-04 Thread Siegfried Heintze
Siegfried wrote:
OK, I tried that. See below for the results. Looks like we have the same
problem.
Thanks,
Siegfried

Brian wrote:
So as a
workaround, try make install DESTDIR=/ which would result in
///foo/bar which is the POSIX-sanctioned way of dealing with
filesystems that reserve // for network paths.  Or, you could actually
use DESTDIR in the way it's designed (which is probably why this was
never noticed when e.g. creating the grep packages.)

Also, knock this off:

 cd c:/cygwin/usr/src/grep-2.5.1a-4/

cd /usr/src/grep-2.5.1a-4/
make install DESTDIR=/
Making install in intl
make[1]: Entering directory `/usr/src/grep-2.5.1a-4/intl'
if test grep = gettext \
test '' = 'intl-compat.o'; then \
  /bin/sh `case ./mkinstalldirs in /*) echo ./mkinstalldirs ;;
*) echo .././mkinstalldirs ;; esac` //usr/local/lib //usr/local/include; \
  /usr/bin/install -c -m 644 libintl.h
//usr/local/include/libintl.h; \
  @LIBTOOL@ --mode=install \
/usr/bin/install -c -m 644 libintl.a //usr/local/lib/libintl.a;
\
else \
  : ; \
fi
if test 'no' = yes; then \
  test no != no || /bin/sh `case ./mkinstalldirs in /*) echo
./mkinstalldirs ;; *) echo .././mkinstalldirs ;; esac` //usr/local/lib;
\
  temp=//usr/local/lib/t-charset.alias; \
  dest=//usr/local/lib/charset.alias; \
  if test -f //usr/local/lib/charset.alias; then \
orig=//usr/local/lib/charset.alias; \
sed -f ref-add.sed $orig  $temp; \
/usr/bin/install -c -m 644 $temp $dest; \
rm -f $temp; \
  else \
if test no = no; then \
  orig=charset.alias; \
  sed -f ref-add.sed $orig  $temp; \
  /usr/bin/install -c -m 644 $temp $dest; \
  rm -f $temp; \
fi; \
  fi; \
  /bin/sh `case ./mkinstalldirs in /*) echo ./mkinstalldirs ;;
*) echo .././mkinstalldirs ;; esac` //usr/local/share/locale; \
  test -f //usr/local/share/locale/locale.alias \
 orig=//usr/local/share/locale/locale.alias \
|| orig=./locale.alias; \
  temp=//usr/local/share/locale/t-locale.alias; \
  dest=//usr/local/share/locale/locale.alias; \
  sed -f ref-add.sed $orig  $temp; \
  /usr/bin/install -c -m 644 $temp $dest; \
  rm -f $temp; \
else \
  : ; \
fi
if test grep = gettext; then \
  /bin/sh `case ./mkinstalldirs in /*) echo ./mkinstalldirs ;;
*) echo .././mkinstalldirs ;; esac` //usr/local/share/gettext/intl; \
  /usr/bin/install -c -m 644 VERSION
//usr/local/share/gettext/intl/VERSION; \
  /usr/bin/install -c -m 644 ChangeLog.inst
//usr/local/share/gettext/intl/ChangeLog; \
  dists=COPYING.LIB-2.0 COPYING.LIB-2.1 Makefile.in config.charset
locale.alias ref-add.sin ref-del.sin gmo.h gettextP.h hash-string.h
plural-exp.h eval-plural.h os2compat.h libgnuintl.h loadinfo.h bindtextdom.c
dcgettext.c dgettext.c gettext.c finddomain.c loadmsgcat.c localealias.c
textdomain.c l10nflist.c explodename.c dcigettext.c dcngettext.c dngettext.c
ngettext.c plural.y plural-exp.c localcharset.c localename.c osdep.c
os2compat.c intl-compat.c; \
  for file in $dists; do \
/usr/bin/install -c -m 644 ./$file \
//usr/local/share/gettext/intl/$file; \
  done; \
  chmod a+x //usr/local/share/gettext/intl/config.charset; \
  dists=plural.c; \
  for file in $dists; do \
if test -f $file; then dir=.; else dir=.; fi; \
/usr/bin/install -c -m 644 $dir/$file \
//usr/local/share/gettext/intl/$file; \
  done; \
  dists=xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c
COPYING.LIB-2 gettext.h libgettext.h plural-eval.c; \
  for file in $dists; do \
rm -f //usr/local/share/gettext/intl/$file; \
  done; \
else \
  : ; \
fi
make[1]: Leaving directory `/usr/src/grep-2.5.1a-4/intl'
Making install in po
make[1]: Entering directory `/usr/src/grep-2.5.1a-4/po'
if test -r .././mkinstalldirs; then \
  .././mkinstalldirs ///usr/local/share; \
else \
  /bin/sh ../mkinstalldirs ///usr/local/share; \
fi
mkdir //usr
mkdir: cannot create directory `//usr': No such host or network path
mkdir //usr/local
mkdir: cannot create directory `//usr/local': No such host or network path
mkdir //usr/local/share
mkdir: cannot create directory `//usr/local/share': No such host or network
path
make[1]: *** [install-data-yes] Error 1
make[1]: Leaving directory `/usr/src/grep-2.5.1a-4/po'
make: *** [install-recursive] Error 1

Compilation exited abnormally with code 2 at Thu Oct  4 15:11:53


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

RE: Problems compiling grep and friends

2007-10-03 Thread Siegfried Heintze

On 27 September 2007 14:15, Siegfried Heintze wrote:

 I'm running xp pro and I am trying to compile grep. I downloaded the
source.
 ./configure seemed to go OK but there were problems with make. It looks
 like it cannot find the usr directory. Is there a fix for this?

  How did you configure?  It looks like it's got confused over the --prefix
setting; that extra '/' then makes cygwin treat the path as a UNC network
path, so you're trying to install to a network share called 'local' on a
remote host named 'usr'!  

  I've seen this sort of thing happen before when I was messing around by
setting DESTDIR during make install.  You'd better show us all your
configure and build command lines.

Is there a cygpath command that will show me all the files connected
with grep? What is this command? Should not I have been able to
manually find some notes on compiling this in /usr/share/doc
someplace? I could not find any notes there.


Ok, here it is:


cd c:/cygwin/usr/src/grep-2.5.1a-4/
./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking for gawk... (cached) gawk
checking for gcc... gcc
checking for C compiler default output... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for getconf... no
checking for CFLAGS value to request large file support... no
checking for LDFLAGS value to request large file support... no
checking for LIBS value to request large file support... no
checking for _FILE_OFFSET_BITS... no
checking for _LARGEFILE_SOURCE... no
checking for _LARGE_FILES... no
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for function prototypes... yes
checking for ANSI C header files... yes
checking for string.h... (cached) yes
checking for size_t... yes
checking for ssize_t... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inttypes.h... yes
checking for unsigned long long... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for memory.h... (cached) yes
checking for unistd.h... (cached) yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking whether stat file-mode macros are broken... no
checking for stdlib.h... (cached) yes
checking for mbstate_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether closedir returns void... no
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... no
checking for btowc... yes
checking for isascii... yes
checking for memmove... yes
checking for setmode... yes
checking for strerror... yes
checking for wctype... yes
checking for mbrtowc... yes
checking for memchr... yes
checking for stpcpy... no
checking for strtoul... yes
checking for atexit... yes
checking for fnmatch... yes
checking for stdlib.h... (cached) yes
checking whether inttypes.h defines strtoumax as a macro... no
checking for strtoumax... yes
checking whether strtoul is declared... yes
checking whether strtoull is declared... yes
checking for strerror in -lcposix... no
checking for inline... inline
checking for off_t... yes
checking whether we are using the GNU C Library 2.1 or newer... no
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... no
checking

FW: Problems compiling grep and friends

2007-09-27 Thread Siegfried Heintze



I’m running xp pro and I am trying to compile grep. I downloaded the source.
./configure seemed to go OK but there were problems with “make”. It looks
like it cannot find the usr directory. Is there a fix for this?
Thanks,
Siegfried


make[1]: Leaving directory `/cygdrive/c/Documents and
Settings/sheintze/Desktop/ftp%3a%2f%2fmirrors.kernel.org%2fsourceware%2fcygw
in/release/grep/grep-2.5.1a-4/intl'
Making install in po
make[1]: Entering directory `/cygdrive/c/Documents and
Settings/sheintze/Desktop/ftp%3a%2f%2fmirrors.kernel.org%2fsourceware%2fcygw
in/release/grep/grep-2.5.1a-4/po'
if test -r .././mkinstalldirs; then \
      .././mkinstalldirs //usr/local/share; \
    else \
      /bin/sh ../mkinstalldirs //usr/local/share; \
    fi
mkdir //usr
mkdir: cannot create directory `//usr': No such host or network path
mkdir //usr/local
mkdir: cannot create directory `//usr/local': No such host or network path
mkdir //usr/local/share
mkdir: cannot create directory `//usr/local/share': No such host or network
path
make[1]: *** [install-data-yes] Error 1
make[1]: Leaving directory `/cygdrive/c/Documents and
Settings/sheintze/Desktop/ftp%3a%2f%2fmirrors.kernel.org%2fsourceware%2fcygw
in/release/grep/grep-2.5.1a-4/po'
make: *** [install-recursive] Error 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/



How to run VNC thru ssh (openssh question)

2006-03-20 Thread Siegfried Heintze

I used to use the following all the time to access my Windows machine
remotely:

ssh -f -L 5901:localhost:5900 -N -C -o Compression=yes -o
CompressionLevel=9 
machine name or ip
vncviewer 

YMMV.

Obviously, you need to make sure that the port ssh is using is open
through any firewall.

None of this is really Cygwin-specific so further discussion on this l
list along this line is really off-topic though.

H... I hope that is not true. I hope this is on topic because I think it
is an issue with installing ssh. I get the following error when I try the
command above:

No matching comp found: client zlib server none,[EMAIL PROTECTED]

I tried leaving off the -o and compression flags, but this did not help. I
got the same error until I removed the -C and then it did not even give me
an error message (and still did not work).

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/



Is there a cygwin nfs-client?

2006-03-19 Thread Siegfried Heintze
I looked in the cygwin installation program and I can see the nfs-server. Is
there an nfs-client?

Thanks,
Siegfried


--
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 run _X_ Session from RH8 via ssh -X?

2006-03-17 Thread Siegfried Heintze
[snip]

   However, I cannot seem to start an X session from my ssh  -X -p 892
   [EMAIL PROTECTED] session. I tried running explorer . and
that
   just hung. OK, that was not an X program.  Then I tried
   /usr/X11R6/bin/xclock and it said it could not open the display.
Having
   already done a xhost+ remote wan address before running ssh I tried
export
   DISPLAY=client lan address:0.0 but that did not help: it still could
not
   open the display.
 
 If you are using ssh -X or -Y you don't need to set DISPLAY, in fact ssh
already
 did set it.  But if you set DISPLAY then X uses the normal ports and those
will
 have to be opened/redirected on the firewall.
 
 [snip]
   winCheckDisplayNumber - Cygwin/X is already running on display 0
 
 It was running already but it's not needed unless you want to use VNC.

Well what am I doing wrong? I forgot to mention: the firewall guarding the
windows machine must have the necessary ports open or I would not be able to
establish a console window on it.

Why does  /usr/X11R6/bin/xclock still say Error can't open display:?

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/



RE: How to run _X_ Session from RH8 via ssh -X?

2006-03-17 Thread Siegfried Heintze
  [snip]
  Why does  /usr/X11R6/bin/xclock still say Error can't open display:?
 
 That looks like an explicit unsetting of DISPLAY, i.e. somewhere, probably
your
 .profile/.bashrc/.bash_profile, has a unset DISPLAY.
 
 Starting in Cygwin:
 $ echo $DISPLAY
 :0
 $ ssh -X [EMAIL PROTECTED]
 # echo $DISPLAY
 localhost:10.0
 
 Notice that ssh created a pseudo display that will be used to tunnel the X
 protocol back to your local X server.

I did 
ssh -X [EMAIL PROTECTED]
ls -A -1 | xargs grep -n DISPLAY *
echo $DISPLAY

The only place DISPLAY occurred (in the output) was in the .bash_history
file. Echo $DISPLAY gave a blank line only.

Any other suggestions?
Sieg 


--
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 run _X_ Session from RH8 via ssh -X?

2006-03-17 Thread Siegfried Heintze
Thanks Dan and Rene! It works.

But now I just realized the obvious: Only X GUIS work and not windows. 

Is this correct?

I assume I can tunnel rdesktop the same way I tunnel vnc? I guess I'll try
tunneling both vnc and rdesktop  next.

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/



How to run X Session from RH8 via ssh -X? How to run vnc via ssh?

2006-03-17 Thread Siegfried Heintze
Thanks for all the help so far. I hope this will be a 100%
cygwin-mailing-list compliant posting.

(1) I read the description of TOFU and I still don't understand it. I don't
understand what I am doing wrong. If I want to quote a previous posting,
should I not put the quoted text first and then my response?

(2) For reasons I don't understand, there was a conflict between my router's
sshd and my cygwin's sshd so I resolved the problem by changing the cygwin's
configuration file to start sshd on a different port. Now, using a Red Hat 8
client, I can use both rdesktop and ssh to create two different simultaneous
sessions on my win2003 server.

However, I cannot seem to start an X session from my ssh  -X -p 892
[EMAIL PROTECTED] session. I tried running explorer . and that
just hung. OK, that was not an X program.  Then I tried
/usr/X11R6/bin/xclock and it said it could not open the display. Having
already done a xhost+ remote wan address before running ssh I tried export
DISPLAY=client lan address:0.0 but that did not help: it still could not
open the display.

Do I need to punch a whole in my client's firewall? I doubt the will let me
do that.

Don't I need to start the xserver? Here is my attempt:
startxwin.bat - Starting on Windows NT/2000/XP/2003^M
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.8.2.0-4

Contact: cygwin-xfree@cygwin.com

XWin was started with the following command line:

/usr/X11R6/bin/XWin -multiwindow -clipboard -silent-dup-error

_XSERVTransmkdir: Cannot create /tmp/.X11-unix with root ownership
winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
winCheckDisplayNumber - Cygwin/X is already running on display 0

Fatal server error:
InitOutput - Duplicate invocation on display number: 0.  Exiting.

winDeinitMultiWindowWM - Noting shutdown in progress

(3) What about vnc? I have installed RealVNC on both the RH8 client and the
Windows 2003 server. Is there also a cygwin VNC? I don't remember seeing
one. Can I make vnc tunnel thru ssh? Would I use the -L or the -R qualifier
on ssh? What would that look like?

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/



RE: OpenSSH for Non Administrators

2006-03-01 Thread Siegfried Heintze
I looked in http://www.openssh.com/faq.html#1.1 as reference by
c:/cygwin/usr/share/doc/openssh/README and I'm having trouble finding the
document that explains how to set ssh up as a service on a windows server.
Can someone please point me to the correct document?
c:/cygwin/usr/share/doc/openssh/README said to refer to the INSTALL document
but I see no such in c:/cygwin/usr/share/doc/openssh. Is my installation
incomplete?

There seems to be a lot of information in man sshd and info sshd but I
could not find where it explains to start it up as a service. No wait: it
says it is normally started in /etc/rc but my cygwin installation has no
such directory. Don't I have to do something with cygrunsrv or some such
utility? Where is the documentation on ssh-host-config that Damian is using
below? I tried man and info with no luck.

Can cygwin ssh be used with the -X option to open an X session on a windows
server? 

Can cygwin ssh be used with VNC to open a VNC session on a remote server? I
have successfully open a session using plain RealVNC server on the windows
server (from red hat 8) and would like to do it securely with ssh.

Thanks,
Siegfried

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Igor Peshansky
Sent: Tuesday, February 28, 2006 2:27 PM
To: Damian Sobieralski
Cc: cygwin@cygwin.com
Subject: Re: OpenSSH for Non Administrators

On Tue, 28 Feb 2006, Damian Sobieralski wrote:

 My apologies if this has asked before.  I researched as much as I could
 on my own. I hope a kind soul can direct me to a useful resource.

  I installed Cygwin on a Windows 2003 Server with OpenSSH 4.2p1-1.
 After installing I ran ssh-host-config and chose privilege separation.

 privilege separation - Yes
 create local user sshd_server - Yes
 install sshd as a service - Yes
 CYGWIN=  - ntsec

  I synced the users and passwords with:

 mkpasswd   --local  /etc/passwd
 mkgroup   --local   /etc/group

I'm guessing this is your problem right here.  Which user did you do this
as?  If you did this as yourself, it could be that these files are only
readable by the Administrators group, which explains why those users can
log in.  Either those, or some other file needed for the login...
Perhaps the shell (/bin/sh or /bin/bash)?

What does ls -l /etc/{passwd,group} /bin/sh /bin/bash print?

  Now the weird thing is that I am able to log in (ssh in).  I'm part of
 the administrator group.  I set up another user as a normal user and
 they are not able to authenticate and get in.  If I promote this user to
 be part of the administrator group he/she is able to get in.

  I read this thread and noticed a poster stated if one read the readme
 in /usr/share/doc/Cygwin that this should cover all I need to know.  I
 did read it and I am not seeing where I made the mistake.  Can anyone
 assist me on where I am making a mistake?

 http://www.cygwin.com/ml/cygwin/2005-10/msg01043.html

It would also help if you followed

 Problem reports:   http://cygwin.com/problems.html

just in case you have some other peculiarity on your system.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] |
[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name
changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends
compte.
But no -- you are no fool; you call yourself a fool, there's proof enough
in
that! -- Rostand, Cyrano de Bergerac

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



davfs for cygwin rsync?

2006-02-02 Thread Siegfried Heintze
I'm looking at the man page for rsync and I need a little help.

I just learned on the Boulder Linux UG mailing list that it is possible to
mount a Web DAV file system with davfs and use rsync with it on a linux
system. I assume this works with another utility too, like unison and
rbackup.

Hmmm... I cannot find rbackup in the man pages on cygwin. What about cygwin
rsync? Can that be used with davfs or something similar on cygwin?
Apparently not. According to the man page Once installed, you can use rsync
to any machine that you can access via remote shell. For remote transfers,
rsync uses ssh for its communications

I was hoping to find a commercial service for which I could use cygwin/rsync
for daily backup. It is easy to find services for WebDAV -- but it is not
clear that cygwin rsync can use WebDAV like linux rsync can. Can someone
please clarify?

Are there commercial hosting services that provide ssh access? 

The man page as a section titled STARTING AN RSYCN DAEMON TO ACCEPT
CONNECTIONS. I'm confused: I thought I needed an ssh deamon.

Thanks,
siegfried


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



How to read man pages on nfs-server?

2006-01-13 Thread Siegfried Heintze
Hmmm... well I tried a few more mirrors and still cannot find nfs-server
2.3-4 -- I'll wait some more.

In the mean time, I did a /usr/bin/find /usr/share | xargs grep -n
nfs-server and found the README contains a list of files below.

Now how do I, from looking at the README, know how to learn more? I tried
info nfs, info nfs-server, man nfs and man nfs-server. None of them
work.

From the README, it looks like there are some man pages. How do I look at
them with the man or info command?

Thanks,
Siegfried

  /usr/bin/nfs-server-config
  /usr/sbin/rpc.mountd.exe
  /usr/sbin/rpc.nfsd.exe
  /usr/sbin/rpc.ugidd.exe
  /usr/sbin/showmount.exe
  /usr/share/doc/Cygwin/nfs-server-2.3-1.README
  /usr/share/doc/nfs-server-2.3/BUGS
  /usr/share/doc/nfs-server-2.3/ChangeLog
  /usr/share/doc/nfs-server-2.3/COPYING
  /usr/share/doc/nfs-server-2.3/NEWS
  /usr/share/doc/nfs-server-2.3/README
  /usr/share/man/man5/exports.5
  /usr/share/man/man8/mountd.8
  /usr/share/man/man8/nfsd.8
  /usr/share/man/man8/showmount.8
  /usr/share/man/man8/ugidd.8 


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



How to convert from windows DLL to windows lib file?

2006-01-13 Thread Siegfried Heintze
Is there a way to generate a windows LIB file from windows DLL file? I
thought I saw it somewhere in some documentation but I cannot remember
where.

I think it is one of the bin utils.  Since someone recently explained that
cygwin so files are the same as dll files, can I infer that the same
technique works for converting so files to LIB files?

Thanks,
Siegfried


--
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: [ANNOUNCEMENT] Updated: nfs-server-2.3-4

2006-01-12 Thread Siegfried Heintze
Where is a mirror I can download this from? I tried a few but they only had
2.3-3.
Thanks,
Siegfried

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Robb, Sam
Sent: Thursday, January 12, 2006 1:50 PM
To: cygwin@cygwin.com
Subject: [ANNOUNCEMENT] Updated: nfs-server-2.3-4

  I've updated the nfs-server package for Cygwin to version 2.3-4.

  This release corrects a problem with trying to assign to a reserved
shell variable in the nfs-server-config script.

   *** INSTALLATION ***

To update your installation, click on the Install Cygwin now link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.  

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the List-Unsubscribe:  tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

- Sam Robb ([EMAIL PROTECTED])
- http://www.timesys.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/


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



Disaster recover with Cygwin?

2006-01-02 Thread Siegfried Heintze
My local linux users group in Colorado is having a very interesting
conversation about disaster recovery on their mailing list.

Let's assume someone types fdisk on my windows boot partition and I need to
recover.

I'm told I can network boot windows across the public internet if I can open
up enough ports on the intervening firewalls. Can I use the cygwin ports of
rsync or rdiff-backup initial create a remote repository and later restore a
bootable windows partition and then boot locally?

Thanks,
Siegfried


 On Tue, Dec 27, 2005 at 10:21:38PM -0700, Siegfried Heintze wrote:
 
  So let us suppose I get hacked or type fdisk by accident or a drive
fails.
  
  Do I have a disk to boot from if
  (1) I buy hosting and send rdiff backups off site?
  (2) I backup to a USB disk?
  (3) I backup to a consumer grade network disk?
  
  I believe in each scenario, I have to get out the installation 
  CDs/DVDs and install the operating system to boot. If it is a hardware 
  failure, I have to purchase a new hard drive. I'm really slow and it 
  takes me a terribly long time to rebuild a dual boot windows/linux 
  system by the time you include all the software development software.
  
 
 I just boot from a knoppix cd, setup the network by hand
 (iwconfig/ifconfig/route/resolv.conf, unless you have a router with
 DHCP setup, in which case there's no setup for Knoppix), partition,
 mke2fs, then use rsync or rdiff-backup to restore.  Then setup
 /boot/grub/menu.lst and run grub-install on the boot drive.  (Or you
 could use lilo, but why??)
 
 
 Can't comment on the Windows aspect of it much, since I last used
 Windows in 1999.  I do remember that back then, it was very difficult
 to just copy the files over and have a working Windows system.  The
 Windows backup program that came with Windows 98 expected you to
 install Windows, *then* run the restore.
 
 
 That program failing me 3 times out of 3 was part of what spurred me
 to learn Linux.  Once I realized what I could do with Linux, I erased
 Windows from all my computers, and haven't put it back since.  I hope
 to never again know more about Windows than the average office worker.
 
 
  I guess one can boot from the network, but I don't know if my network 
  card has the required capabilities. How do I tell? If I do have that 
  capability int my network card, would I be booting from another PC's 
  drive or could this be a consumer grade NAS or SAN (assume there are
such things).
  
 
 I've done this for diskless Linux clusters, and it works well but
 there's definitely an investment in learning how to do this.  You
 probably don't want to learn how to do this unless you want to run
 diskless machines.
 
 
  Is there a better way to mitigate this other than my procedure of 
  weekly connecting a second drive and using telinit 1 ; cp /dev/sda1
/dev/sda2?
 
 I have cloned many Thinkpad 600Es using the simple method I described
 above, and cloning is the same thing as a backup restore, so I know it
 works and is easy too.




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



libxslt v apache

2006-01-01 Thread Siegfried Heintze
Has anyone used both libxslt and xalan? How might one decide between xalan
and libxslt?

Thanks,
Siegfried

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Gerrit P. Haase
Sent: Friday, December 09, 2005 7:22 PM
To: cygwin@cygwin.com
Subject: [ANNOUNCEMENT] Updated: libxslt-1.1.15-2

Libxslt has been updated to version 1.1.15-2


NEWS

- Update to latest upstream release
- Included bugfix for bug #316861 (problems parsing DocBook FO
  stylesheet): http://bugzilla.gnome.org/show_bug.cgi?id=316861
  

Please read the news since the previous Cygwin release (1.1.14) here:
http://xmlsoft.org/XSLT/news.html


DESCRIPTION
===
Libxslt is the XSLT C library developed for the Gnome project. XSLT
itself is a an XML language to define transformation for XML. Libxslt
is based on libxml2 the XML C library developed for the Gnome project.
It also implements most of the EXSLT set of processor-portable
extensions functions and some of Saxon's evaluate and expressions
extensions.


UPDATE
==
To update your installation, click on the Install Cygwin now link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Save it and run setup, answer the questions and pick up
'libxslt' from the 'Libs' category, if you install it for the first
time, click on the 'skip' field next to 'libxslt' until '1.1.15-2' is
displayed.


DOWNLOAD:
=
Note that downloads from sources.redhat.com (aka cygwin.com) aren't
allowed due to bandwidth limitations.  This means that you will need
to find a mirror which has this update, please choose the one nearest to
you: http://cygwin.com/mirrors.html


QUESTIONS:
==
If you want to make a point or ask a question the Cygwin mailing
list is the appropriate place.


CYGWIN-ANNOUNCE UNSUBSCRIBE INFO:
=
To unsubscribe to the cygwin-announce mailing list, look at the
List-Unsubscribe:  tag in the email header of this message.  Send
email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.


Gerrit P. Haase
-- 
=^..^=


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



cygwin NFS File servers on windows?

2006-01-01 Thread Siegfried Heintze
I was looking for a windows based nfs file server. I googled and found
http://opensource.franz.com/nfs/. Does anyone have any experience with this
or other opensource nfs file servers? There are others for only $40.

Does cygwin include  nfs file server? I don't remember ever seeing one. It
seems that this would be a logical piece of software to be included with
cygwin.

Thanks,
Siegfried



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



Extracting Debug (meta data) from executable images?

2005-12-07 Thread Siegfried Heintze
I hope Igor will be pleased that I first posted in a g++ forum about reading
executable images.

I was referred to STABS, DWARF, DWARFv2 and v3 and
http://www.eagercon.com/dwarf/dwarf3std.htm and
http://reality.sgi.com/davea/dwarf.html.

What is the relationship between cygwin, windows and these formats and
libraries? Can I use these linux libraries to read debug information in
images created with g++ on cygwin?

If not, how do I read the debug information in images created with g++ on
cygwin?

Thanks,
Siegfried


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



dll v so?

2005-12-07 Thread Siegfried Heintze
I'm confused about dll v. so and cygwin. I've used the documentation to
create and load dlls with g++.

However, I notice that Apache Httpd uses .so files. Is the choice to
produce .dll or .so files purely a matter of who is going to load them?

Thanks,
Siegfried



--
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: Extracting Debug (meta data) from executable images?

2005-12-07 Thread Siegfried Heintze

But extracting debug info is way too vague of a term to offer any
meaningful help.  You'd have to state exactly what you're trying to do.
Try man objdump or objdump -g file, or read the binutils/bfd
internals manuals.

I basically want to implement reflection for C++ by extracting all the
metadata in the debug portion of the executable image to an xml file. Then I
can easily write programs that can enumerate all the data members of any
given struct or class. GDB can do this: too bad it produces C syntax instead
of XML. I don't want to parse C, it is too difficult.

I found a utility called gccxml which uses the gcc front end and dumps XML
for all the class and struct information. It is strange, however, because it
does not implement the -I switch that gcc does.

Neither nm, readelf or objdump enumerate the fields of a struct. It looks
like dwarfdump would, but libdwarf does not compile with cygwin/gcc 3.4 or
RedHat8/gcc 3.2.

So if I download the source code for GDB, do I compile it on cygwin using
g++? I'd just need to modify the info variables and ptype commands to
emit XML instead of C.

Siegfried


--
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: Extracting Debug (meta data) from executable images?

2005-12-07 Thread Siegfried Heintze
How does ELFDump.exe work? I did a 

chmod 777 hello.*

and still 

ELFDump hello.o

And

ELFDump hello.exe


Still produce the 

Can't openinput file Hello.exe

Thanks,

Siegfried


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



Wanted: Help translating classpath from CMD.EXE to bash

2005-10-31 Thread Siegfried Heintze
Can someone help me translate this to bash? It works with CMD.EXE. java and
javac are programs for sun that are not cygwin based so I believe they want
windows style file specifications and not cygwin/bash/unix style file
specifications.

Here is the CMD.EXE script:

SET
CLASSPATH=.;c:\dev\xalan\xalan-j_2_7_0\samples\xsltcservlet.jar;c:\dev\xalan
\xalan-j_2_7_0\samples\xsltcejb.jar;c:\dev\xalan\xalan-j_2_7_0\samples\xsltc
brazil.jar;c:\dev\xalan\xalan-j_2_7_0\samples\xsltcapplet.jar;c:\dev\xalan\x
alan-j_2_7_0\samples\xalansamples.jar;c:\dev\xalan\xalan-j_2_7_0\serializer.
jar;c:\dev\xalan\xalan-j_2_7_0\xalan.jar;c:\dev\xalan\xalan-j_2_7_0\xercesIm
pl.jar;c:\dev\xalan\xalan-j_2_7_0\xml-apis.jar;c:\dev\xalan\xalan-j_2_7_0\xs
ltc.jar
javac -g ApplyXPathDOM.java
java ApplyXPathDOM foo.xml /doc/name[1]/@last

Woops -- I did not intend it to wrap!

Thanks,
Siegfried


--
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: Wanted: Help translating classpath from CMD.EXE to bash

2005-10-31 Thread Siegfried Heintze
Thanks Igor!

 As someone mentioned, you can use cygpath -p to convert a POSIX-style
 path into a Win32-style one.

I think I need to go the other way. Given a CLASSPATH variable in windows,
how do I convert it to cygwin? Do I use : to separate the elements, or do
I use \;. If I use :, what about the windows device names?

It seems to me this should have worked, but it does not:
 * CLASSPATH=.\;c:\\dev\\xalan\\xalan-j_2_7_0\\xsltcservlet.jar\;others
 * export $CLASSPATH
 * echo ${CLASSPATH}
 * javac myprogram.java

 
 Alternatively, you can try using my java wrapper scripts that will do the
 translation automatically for you (the scripts can be found at
 http://cygwin.com/cgi-bin/cvsweb.cgi/wrappers/java/?cvsroot=cygwin-apps;
 you'll need to edit the scripts to point them to your Java installation
 directory).
 

OK, is there any documentation? What kind of wrappers are these? I have
never heard of bash wrappers before. (hmmm... bash wrappers, sounds like a
new genre of music! -- maybe something like slam dancing?)

How about an example? That would probably suffice.

Well, even if I get Igor's bash wrappers to work, I'm kinda curious why my
attempt did not.

Siegfried


--
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: Wanted: Help translating classpath from CMD.EXE to bash

2005-10-31 Thread Siegfried Heintze
I figured it out. This does work after all:

CLASSPATH=.\;c\:\\dev\\xalan\\xalan-j_2_7_0\\samples\\xsltcservlet.jar\;c\:\
\dev\\xalan\\xalan-j_2_7_0\\samples\\xsltcejb.jar\;c\:\\dev\\xalan\\xalan-j_
2_7_0\\samples\\xsltcbrazil.jar\;c\:\\dev\\xalan\\xalan-j_2_7_0\\samples\\xs
ltcapplet.jar\;c\:\\dev\\xalan\\xalan-j_2_7_0\\samples\\xalansamples.jar\;c\
:\\dev\\xalan\\xalan-j_2_7_0\\serializer.jar\;c\:\\dev\\xalan\\xalan-j_2_7_0
\\xalan.jar\;c\:\\dev\\xalan\\xalan-j_2_7_0\\xercesImpl.jar\;c\:\\dev\\xalan
\\xalan-j_2_7_0\\xml-apis.jar\;c\:\\dev\\xalan\\xalan-j_2_7_0\\xsltc.jar
export CLASSPATH
javac -g ApplyXPathDOM.java


One has to escape the colons and the semi colons. I don't understand why I
have to escape the colons too -- but it works.

Thanks for the example for the java/bash wrappers -- I think I understand
now.

Siegfried

-Original Message-
From: Igor Pechtchanski [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 31, 2005 9:06 PM
To: Siegfried Heintze
Cc: cygwin@cygwin.com
Subject: RE: Wanted: Help translating classpath from CMD.EXE to bash

On Mon, 31 Oct 2005, Siegfried Heintze wrote:

 Thanks Igor!

  As someone mentioned, you can use cygpath -p to convert a POSIX-style
  path into a Win32-style one.

 I think I need to go the other way. Given a CLASSPATH variable in
 windows, how do I convert it to cygwin? Do I use : to separate the
 elements, or do I use \;. If I use :, what about the windows device
 names?

I should've been clearer, and said you can use 'cygpath -p' to convert
*between* a POSIX-style path and a Win32-style one.  cygpath -[u]p (the
u is optional) will convert from a Win32 path to a POSIX one, whereas
cygpath -wp will convert from a POSIX path to a Win32 one.  For more
details, see man cygpath, as Larry said.

 It seems to me this should have worked, but it does not:
  * CLASSPATH=.\;c:\\dev\\xalan\\xalan-j_2_7_0\\xsltcservlet.jar\;others
  * export $CLASSPATH
  * echo ${CLASSPATH}
  * javac myprogram.java

What exactly didn't work here?  What were the errors?

  Alternatively, you can try using my java wrapper scripts that will do
  the translation automatically for you (the scripts can be found at
 
http://cygwin.com/cgi-bin/cvsweb.cgi/wrappers/java/?cvsroot=cygwin-apps;
  you'll need to edit the scripts to point them to your Java
  installation directory).

 OK, is there any documentation?

Nope.  I haven't really had time to package them properly.  I won't be
able to write full-fledged documentation, but I'm willing to answer
questions and accept documentation patches against the CVS repository
above.  Care to help out?

 What kind of wrappers are these?

They are wrappers around the java, javac, etc, executables.  Just make
sure they precede the real executables in the PATH.  They will basically
invoke the real ones, having translated the known path arguments to POSIX
format.  They will not translate all arguments -- if you pass filenames to
your Java program, you're responsible for translating those.  But they
help (a lot, actually -- I use them constantly on my machine).

 I have never heard of bash wrappers before. (hmmm... bash wrappers,
 sounds like a new genre of music! -- maybe something like slam dancing?)

They are wrapper programs written in bash.

 How about an example? That would probably suffice.

Sure.  You can run

/usr/local/bin/java -classpath /home/me/jars/a.jar:/home/me/classes
SomeClass

And it'll call the Windows Java executable with the right paths.

 Well, even if I get Igor's bash wrappers to work, I'm kinda curious why
 my attempt did not.

You'll have to provide more details on what exactly didn't work in your
attempt.
HTH,
Igor
P.S. If you decide to try XJ after all, I'd be interested in your feedback
off-list.
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA


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



Where is documentation on keyring?

2005-10-22 Thread Siegfried Heintze
I'm poking around in c:/cygwin/usr/share/doc/gnome-keyring-0.4.3 trying to
understand how to use this program called keyring.

Can I expect all Cygwin utilities to be already compiled and have a file
that contains a URL to the documentation? 

I could google for it, but I wanted to be assured that the copy I have from
Cygwin is the same program I find with google. (For example, active state
perl is quite different from Cygwin perl and Cygwin cvs is quite different
from cvsnt even though the name of the cvsnt client is still cvs.exe).

There is an INSTALL file, but do I need to install it after running the
Cygwin setup.exe? I could not find the source code directory anyway
(probably because I did not request to get the source).

Should I not be able to find a file in
c:/cygwin/usr/share/doc/gnome-keyring-0.4.3 that points me to some
directions on how to run the program that I presume is already compiled and
installed on my system?

Oh - I also tried info keyring and man keyring -- no luck there either.

OK, I give up: I'm googling for it: I'm getting something about palm
keyring. Hmmm... that is probably not it. What about
http://cvs.gnome.org/viewcvs/gnome-keyring-manager/ ? This does not tell me
much more than I already know.

I'm stuck. Can someone please point me to the documentation?

Thanks,
Siegfried


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



Where is documentation on bash wait?

2005-10-15 Thread Siegfried Heintze
I tried info and man and could not find any information on wait. I want to
(using bash)

(1) How do I wait for multiple children and wake up when the first one dies?

(2) Examine the status code of the dead child and possibly spawn a new one?

Where is the documentation on wait?

Thanks,
Siegfried


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



System V IPC Message Queues and Shared Memory?

2005-10-11 Thread Siegfried Heintze
I'm curious: does cygwin support the msgget, msgsnd, msgrcv  msgctl
functions from System V IPC?

The sample code I downloaded from the www.wrox.com (for the book Beginning
Linux Programming 3rd Edition chapter 14) compiles with no errors bug causes
a 5032 Bad System call.

Should these functions work?

And what about shared memory using shmget, shmat, shmdt, shmctl?
The sample code compiles with these functions too but gives a  2764 Bad
system call  and  4480 Bad system call when I run them.
Should these work?

Thanks,
Siegfried


--
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: Documentation on functions

2005-09-15 Thread Siegfried Heintze
Is there documentation on the documentation?

In other words, is the process of submitting documentation documented? Does
one use the GNU texi or SGML docbook or some other format? I've been curious
about these tools for years but have never used them.

Are there any functions documented (and I just had the bad luck of picking
the only three that were not documented) or do they all need to be
documented? (Yikes! That could be a big job)!

Is it a simple matter of cutting and pasting from linux (e.g. fedora) man
pages or does one have to go to the source code and extract the copious
comments there and just reformat them into man pages?

Siegfried


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



Documentation on functions

2005-09-14 Thread Siegfried Heintze
This is the third time I have mailed this to Cygwin@cygwin.com and it has
not showed up yet in the list. I am subscribed. Obviously, if you are seeing
this, then it succeeded. What a mystery.

Anyway...

I noticed that when I boot fedora core 4, the function readdir is documented
in man. However, when I boot windows/Cygwin readdir is not available in info
or man. When I download the same code for Beginning Programming in Linux
from the www.wrox.com site I notice that all the code on pthreads compiles
and seems to run! But, I notice, pthread_attr_init is not in man or info
either. Where is the documentation on these functions?

 

Thanks,

Siegfried/


--
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: cron issue: The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be found

2005-06-30 Thread Siegfried Heintze
I'm having similar troubles. I have read the cron.README file. I installed
cron some time ago. I believe I used the command described in cron.README. I
see there are several cron.exes running on my system when I look at the
process list. Should there be?

 Here is one of the many entries in the event viewer. 


I need some help interpreting this:

The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help and
Support for details. The following information is part of the event:
/usr/sbin/cron : PID 1836 : (Siegfried) CMD (/c/Perl/bin/perl
/c/WinOOP/Perl/bots/yahoo/finance/crawl-hot-jobs.pl /GUI=NONE /sleep=60
/threads=8 `date +).

Any suggestions on how to resolve this?
Thanks,
Siegfried




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
René Berber
Sent: Wednesday, June 29, 2005 3:26 PM
To: cygwin@cygwin.com
Subject: Re: cron issue

Imran Merali wrote:

 I am trying to get cron to execute a bash script at a certain time,
 but it is not doing so. The script itself works well, but it doesn't
 seem to want to run when i set it up as a cron job. The same thing
 happens when I try to do something simple like output a timestamp to a
 text file each minute. This is a fresh install. Additionally, the line
 in my crontab is identical to that in the crontab on my bsd machine. I
 used cron_diagnose.sh, but it said my install was fine, with the
 exception of a little issue with sendmail, which I tried to correct
 with a symlink to a working mailer.
[snip]

First look into the Windows Event Viewer + Application, you should find a
few
events that have, among other things, the crond output.

Second read $CYGWIN_HOME/usr/share/doc/Cygwin/cron.README and see what you
need
to have cron email you.

BTW bash scripts work fine with cron, what you describe as doing should work
with no problem.

HTH
-- 
René Berber


--
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: cron issue: The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be found

2005-06-30 Thread Siegfried Heintze
I found http://www.cygwin.com/ml/cygwin/2003-09/msg01858.html and it says to
create /etc/cron.d but that directory is already created. So then I noticed
it was marked readonly so I gave full control to everyone and still no luck.
Thanks,
Siegfired

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Siegfried Heintze
Sent: Thursday, June 30, 2005 6:10 PM
To: cygwin@cygwin.com
Subject: RE: cron issue: The description for Event ID ( 0 ) in Source (
/usr/sbin/cron ) cannot be found

I'm having similar troubles. I have read the cron.README file. I installed
cron some time ago. I believe I used the command described in cron.README. I
see there are several cron.exes running on my system when I look at the
process list. Should there be?

 Here is one of the many entries in the event viewer. 


I need some help interpreting this:

The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help and
Support for details. The following information is part of the event:
/usr/sbin/cron : PID 1836 : (Siegfried) CMD (/c/Perl/bin/perl
/c/WinOOP/Perl/bots/yahoo/finance/crawl-hot-jobs.pl /GUI=NONE /sleep=60
/threads=8 `date +).

Any suggestions on how to resolve this?
Thanks,
Siegfried




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
René Berber
Sent: Wednesday, June 29, 2005 3:26 PM
To: cygwin@cygwin.com
Subject: Re: cron issue

Imran Merali wrote:

 I am trying to get cron to execute a bash script at a certain time,
 but it is not doing so. The script itself works well, but it doesn't
 seem to want to run when i set it up as a cron job. The same thing
 happens when I try to do something simple like output a timestamp to a
 text file each minute. This is a fresh install. Additionally, the line
 in my crontab is identical to that in the crontab on my bsd machine. I
 used cron_diagnose.sh, but it said my install was fine, with the
 exception of a little issue with sendmail, which I tried to correct
 with a symlink to a working mailer.
[snip]

First look into the Windows Event Viewer + Application, you should find a
few
events that have, among other things, the crond output.

Second read $CYGWIN_HOME/usr/share/doc/Cygwin/cron.README and see what you
need
to have cron email you.

BTW bash scripts work fine with cron, what you describe as doing should work
with no problem.

HTH
-- 
René Berber


--
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: How to write minimal program using GD library

2005-06-18 Thread Siegfried Heintze
Thanks Brian,
It works! My problem was that I was running the program (via bash) from the
emacs compile command.

I wonder why the path is not set up correctly when I use emacs to create a
subprocess? The path is setup correctly when I click on the Cygwin prompt.

I think emacs specifies bash.exe -- perhaps that is the problem. Do I have
to specify cygwin.bat?

Below is the contents of Cygwin.bat. It does not look like it sets up any
environment variables to me. Why is Cygwin.bat important?

I'd also like to make this compile with msvc using the MSVC version of the
gd library I downloaded from boutell.com. I guess I'll send email to him as
the web site suggests unless someone can suggests a forum to post in.

Siegfried
Cygwin.bat:
@echo off

C:
chdir C:\cygwin\bin

bash --login -i


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



How to write minimal program using GD library

2005-06-17 Thread Siegfried Heintze
I'm looking at the GD documentation (a C graphics library) and it pointed me
to a simple minimal C program. I cut and pasted this. See below.

I cannot get it to work, however, with g++ or msvc v7. When I follow the
directions with gcc, it compiles and links fine but when I try to run the
resulting program, I get the following error:

This application has failed to start because cygXpm-4.dll was not found.
Re-installing the application may fix this problem.

I've downloaded nearly the entirety of Cygwin and I cannot find such a dll.
How do I make this minimal program work?

When linking with C libraries downloaded as part of Cygwin, do I have to do
anything special? The documentation says no. I would guess that gcc
automatically knows to look in C:\cygwin\lib -- is this correct?


Thanks
Siegfried


/***
 *  Begin commands to execute this file using g++ with bash
 *  gcc gddemo.c -o gddemo.exe -lgd
 *  cygpath gddemo.exe 
 *  ./gddemo.exe EOF
 *  insert your data here
 *  EOF
 *  #rm gddemo.exe 
 *  End commands to execute this file using g++ with bash
 * 
 *  Begin commands to execute this file using MSVC7 with CMD.EXE
 *  SET VCINSTALLDIR=c:\Program Files\Microsoft Visual Studio .NET 2003
 *  SET MSVCDir=%VCINSTALLDIR%\VC7
 *  SET FrameworkDir=\WINNT\Microsoft.NET\Framework
 *  SET FrameworkSDKDir=\Program Files\Microsoft Visual Studio
.NET\FrameworkSDK
 *  set
PATH=%MSVCDir%\BIN;%VCINSTALLDIR%\Common7\Tools;%VCINSTALLDIR%\Common7\IDE;%
VCINSTALLDIR%\Common7\Tools\bin\prerelease;%VCINSTALLDIR%\Common7\Tools\bin;
%FrameworkSDKDir%\bin
 *  set
INCLUDE=%MSVCDir%\ATLMFC\INCLUDE;%MSVCDir%\INCLUDE;%MSVCDir%\PlatformSDK\inc
lude\prerelease;%MSVCDir%\PlatformSDK\include;%FrameworkSDKDir%\include;%INC
LUDE%
 *  set
LIB=%MSVCDir%\ATLMFC\LIB;%MSVCDir%\LIB;%MSVCDir%\PlatformSDK\lib\prerelease;
%MSVCDir%\PlatformSDK\lib;%FrameworkSDKDir%\lib;%LIB%
 *  cl gddemo.c   /I. /c /MLd /W3 /Gm /GX /ZI /Od /D WIN32 /D _DEBUG /D
_CONSOLE /D _MBCS /FD /GZ /GR /D NOPROMPT
 *  cl gddemo.obj bgd.lib /link /out:gddemo.exe  /subsystem:console
/incremental:yes 
 *  gddemo.exe insert your data here 
 *  del gddemo.obj gddemo.exe *.ilk *.pdb *.idb
 *  End commands to execute this file using MSVC7 with CMD.EXE
 ***/
 
// See http://www.boutell.com/gd/manual2.0.33.html#getgd
// http://www.boutell.com/gd/

/* Bring in gd library functions */

#include gd.h

/* Bring in standard I/O so we can output the PNG to a file */
#include stdio.h

int main() {
  /* Declare the image */
  gdImagePtr im;
  /* Declare output files */
  FILE *pngout, *jpegout;
  /* Declare color indexes */
  int black;
  int white;

  /* Allocate the image: 64 pixels across by 64 pixels tall */
  im = gdImageCreate(64, 64);

  /* Allocate the color black (red, green and blue all minimum).
Since this is the first color in a new image, it will
be the background color. */
  black = gdImageColorAllocate(im, 0, 0, 0);  

  /* Allocate the color white (red, green and blue all maximum). */
  white = gdImageColorAllocate(im, 255, 255, 255);  
  
  /* Draw a line from the upper left to the lower right,
using white color index. */
  gdImageLine(im, 0, 0, 63, 63, white);  

  printf(call gdImageLine\n);

  /* Open a file for writing. wb means write binary, important
under MSDOS, harmless under Unix. */
  pngout = fopen(test.png, wb);

  printf(call fopen\n);

  /* Do the same for a JPEG-format file. */
  jpegout = fopen(test.jpg, wb);
  
  printf(call gdImgPng\n);

  /* Output the image to the disk file in PNG format. */
  gdImagePng(im, pngout);

  /* Output the same image in JPEG format, using the default
JPEG quality setting. */
  gdImageJpeg(im, jpegout, -1);

  /* Close the files. */
  fclose(pngout);
  fclose(jpegout);

  /* Destroy the image in memory. */
  gdImageDestroy(im);
}



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



Bad mirros

2004-12-16 Thread Siegfried Heintze
I've been trying for weeks to upgrade my Cygwin installation but the setup
program, after I have spent 15 or 20 minutes selecting the software I want,
comes back and says the download is aborted, would I like to try again?

This is very frustrating because then I have to spend another 20 minutes on
another mirror.

So far, after 8 tries, I have not found a good mirror. Anyone know of a good
mirror?

Thanks,

Siegfried


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



where is mail command?

2004-11-26 Thread Siegfried Heintze
As I recall, there is a mail command on most implementations of U*X. So I
looked thru the documentation in Cygwin and could find no documentation. The
mail command is not working either.

When I type info mail at the bash prompt I see Unable to find node
referenced by mailshar. man mail says No manual entry for mail. I tried
looking in the 4 documentation directories too -- no luck again.


 Can someone point me to the documentation on the mail command where I could
learn how to configure it for my ISP?

Thanks,
Siegfried


--
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: Selectively zipping files together

2004-10-18 Thread Siegfried Heintze
Thank you very much.

I have a follow on question: I'm in /cygdrive/c/Program Files/Apache
Group/Apache and I want to back up my work. I don't want to back up the bin
directory, or the error directory or the logs directory...

How do I exclude these directories? The following does not work:

/usr/bin/find . -type f   ! -path \^\.\/bin | less


Thanks,
Siegfried



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Igor Pechtchanski
Sent: Friday, October 15, 2004 9:40 AM
To: Siegfried Heintze
Cc: [EMAIL PROTECTED]
Subject: Re: Selectively zipping files together

On Thu, 14 Oct 2004, Siegfried Heintze wrote:

 I'm trying to use sun's jar utility (from Sun's java development kit)
 along with the Cygwin find command to selectively zip together a
 directory tree and send it to someone that can explode the tree using
 WinZIP or PKZIP.

 I suppose it off topic to discuss the jar utility here. I'm looking for
 an appropriate mailing list to solicit help with jar (suggestions are
 welcome).

 The following does not work because it just grabs all the files in my
 directory. I tried using the -print on find that did not help. I tried
 removing the @ pipe find into xargs and that did not work.

 /usr/bin/find . \( ! -name \*.pch -a ! -path \*CVS\* \) | jar cvf@
..\\archive.zip

To put this on-topic, use the java wrapper scripts I posted a while ago
(they are also in the cygwin-apps CVS, under wrappers/java).  They contain
a jar wrapper script (which needs to be edited, hence it's not a package
yet) that understands Cygwin paths, etc.  So, basically, you'll need to
run

/usr/bin/find . -type f -a ! -name \*.pch -a ! -path \*CVS\* |
/usr/local/bin/jar cvf@ ../archive.jar

 Since we are not allowed to discuss jar here, is there a Cygwin utility
that
 produces Windows ZIP files that will work with find?

Or just use the 'zip' utility from the 'zip' package (D'Oh!).

 I even tried tar (even though it is not the format I want). Why does this
 not work?

 /usr/bin/find . \( ! -name \*.pch -a ! -path \*CVS\* \) | xargs tar cvf
../archive.zip

Again, /usr/bin/find . -type f -a ! -name \*.pch -a ! -path \*CVS\* -print0
| xargs -r0 tar cjvf ../archive.tar.bz2

 The problem is the same: all the files are included. I also, for all of
 the above, tried using the -print on the find command but that did not
 help.

'-print' is the default action.  You were missing the '-type f'

 Oh - and one last question: is there any document that compares bzip with
 bzip2 and gnuzip and winzip?

Ain't no such animal as 'gnuzip' -- did you mean 'gzip'?  'bzip' is a
patent-ridden ancestor to 'bzip2', and is rarely used these days (if at
all).  See, for example, the 'bzip' article at
http://encyclopedia.thefreedictionary.com/Bzip (the sixth match in a
Google search for 'bzip', BTW).
   Igor


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



Selectively zipping files together

2004-10-14 Thread Siegfried Heintze
I did not see this bounce back to me so I am sending it again. I wonder if
the problem was with HTML/plain formatting?


I'm trying to use sun's jar utility (from Sun's java development kit) along
with the Cygwin find command to selectively zip together a directory tree
and send it to someone that can explode the tree using WinZIP or PKZIP.

I suppose it off topic to discuss the jar utility here. I'm looking for an
appropriate mailing list to solicit help with jar (suggestions are welcome).

The following does not work because it just grabs all the files in my
directory. I tried using the -print on find that did not help. I tried
removing the @ pipe find into xargs and that did not work.


/usr/bin/find . \( ! -name \*.pch -a ! -path \*CVS\* \) | jar cvf@
..\\archive.zip

Since we are not allowed to discuss jar here, is there a Cygwin utility that
produces Windows ZIP files that will work with find?

I even tried tar (even though it is not the format I want). Why does this
not work?

/usr/bin/find . \( ! -name \*.pch -a ! -path \*CVS\* \) | xargs tar cvf
../archive.zip

 
The problem is the same: all the files are included. I also, for all of the
above, tried using the -print on the find command but that did not help.

 
Oh - and one last question: is there any document that compares bzip with
bzip2 and gnuzip and winzip?

 

  Thanks,

  Siegfried


--
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: Selectively zipping files together

2004-10-14 Thread Siegfried Heintze

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Christopher Faylor
Sent: Thursday, October 14, 2004 9:55 PM
To: [EMAIL PROTECTED]
Subject: Re: Selectively zipping files together

I'm trying to use sun's jar utility (from Sun's java development kit)
along
with the Cygwin find command to selectively zip together a directory tree
and send it to someone that can explode the tree using WinZIP or PKZIP.

I suppose it off topic to discuss the jar utility here. I'm looking for an
appropriate mailing list to solicit help with jar (suggestions are
welcome).

Yes, it is off-topic.  Why are you not just using the zip utility that 
 comes with cygwin?

Well that was one of my questions. What is the zip utility that comes with
Cygwin? Is it compatible with Windows zip?  

And what about using tar with find? I hope that is not off topic. Why does
tar insist on zipping up the entire directory instead of just the files I
select with find?

 Thanks,
 Sieg


--
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 prepend a directory to the PATH to accommodate CVSNT?

2004-10-06 Thread Siegfried Heintze
I looked in c:\Cygwin\home\Administrator and could not find a .profile file
using emacs. There was a .bash_profile file. Should I create a .profile
file?
  Thanks,
Siegfried

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, October 05, 2004 5:38 PM
To: Siegfried Heintze
Cc: [EMAIL PROTECTED]
Subject: RE: How to prepend a directory to the PATH to accommodate CVSNT?

On  5 Oct, Siegfried Heintze wrote:
  Anyway, in your case it should be as simple as this: 
   
  PATH=/cygdrive/c/Program Files/cvsnt/bin:$PATH 
   
   
  Where do I put this statement? .bashrc? 

You could, but why not put it in ~/.profile so it's read just once by
the login shell, and any child shells then have it in the environment,
instead of having to do it themselves?

FRom memory, bash will look for ~/.bash_login, ~/.profile, ~/.login,
(not sure if it's in that order), and use the first one it finds.

But it won't do this if $HOME was created by Cygwin mkdir instead of
by Windows Explorer, due to some mysterious access permissions problem.

BTW, I use .profile because it's usable regardless of what (Bourne-like)
shell you use.

luke


--
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 prepend a directory to the PATH to accommodate CVSNT?

2004-10-05 Thread Siegfried Heintze



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, October 05, 2004 12:45 AM

Anyway, in your case it should be as simple as this:

PATH=/cygdrive/c/Program Files/cvsnt/bin:$PATH


Where do I put this statement? .bashrc?

Thanks,
Siegfried


--
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 prepend a directory to the PATH to accommodate CVSNT?

2004-10-05 Thread Siegfried Heintze


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Edward L. Fox
Sent: Tuesday, October 05, 2004 12:24 AM
To: [EMAIL PROTECTED]
Subject: Re: How to prepend a directory to the PATH to accommodate CVSNT?

Hi, Siegfried:

In my opinion, I don't think it a good idea to use native Windows
program in cygwin.

Why? I do it all the time?


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



How to prepend a directory to the PATH to accommodate CVSNT?

2004-10-04 Thread Siegfried Heintze
I notice that Cygwin manipulates the path by prepending 
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin: to the windows PATH
environment variable.

This is a problem for me because I'm using CVSNT and I need my cvs client to
be /cygdrive/c/Program Files/cvsnt/bin which it never sees because it finds
cvs.exe in /usr/bin instead and this is not the cvsnt client!

How do I prepend /cygdrive/c/Program Files/cvsnt/bin to the path?

Thanks
Siegfried


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



Where is the documentation for installing Win2K services for cvs, ftp, rlogin, inetd?

2004-10-03 Thread Siegfried Heintze
I found this (see below) via google. I've been spending hours wading thru
the documentation trying to find this information.

I've performed full installations of cygwin on two different computers in
June and yesterday preformed an update on one. I still don't have this file
/usr/doc/cygwin/cron.README on either computer.

Perhaps it would ease my sense of frustration if I understood the logic
behind having three different directories for documentation. There is
/usr/doc/cygwin/, /usr/share/doc and /usr/doc. Have I missed any?

Can someone send me a copy of /usr/doc/cygwin/cron.README? -- Oh never mind.


Oh -- just to prove my point: I just found (while composing this message)
c:/cygwin/usr/share/doc/Cygwin/cron.README and it contains the instructions
I was looking for!

Why does not c:/cygwin/usr/share/doc/cvs-1.11.17/README contain the
instructions for installing the W2K service for cvs? Where are the
instructions for this? c:/cygwin/usr/share/doc/Cygwin/cvs-1.11.17.README
does not contain the instructions for this either. Am I supposed to infer
them from c:/cygwin/usr/share/doc/Cygwin/cygrunsrv.README?

Where are the instructions for starting the services that implement rlogin
and ftp?

Where are the instructions for starting inetd as a WIN2K service? I looked
in c:/cygwin/usr/doc/xinetd-2.3.9/README and could not find the instructions
here either.

   Thanks,
  Siegfried 




On Fri, Sep 21, 2001 at 12:48:47PM -0400, roypgsqlcygwin ( at ) xemaps (
dot ) com wrote:
 BTW, does cygwin itself run as some background application (service) in
NT?

On Fri, Sep 21, 2001 at 12:51:46PM -0400, roypgsqlcygwin ( at ) xemaps (
dot ) com wrote:
 Whoops!  Forgot to read the README at /usr/doc/cygwin/cron.README

Did you forget to read the README again?

$ fgrep cygrunsrv /usr/doc/cygwin/cron.README
cygrunsrv. Install as service like that:
cygrunsrv -I cron -p /usr/sbin/cron -a -D

Or, did you just forgot to start the service?

$ net start cron

Jason




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



How to write telnet server like program for serial port?

2004-10-01 Thread Siegfried Heintze
I need to write a program similar to a telnet server. A telnet server
asynchronously reads data from a socket and writes it to a
sub-process, and asynchronously reads data from the subprocess and
writes to a socket. My program needs to replace the subprocess with a
serial port.

The telnet server cannot anticipate when data will arrive from the
socket. Neither can it anticipate when data will arrive from the
subprocess. 

How can I write a similar OS vendor neutral program using Cygwin C++,
except, instead reading and writing to a process, I read and write to
serial port? Can I do this with a single thread? How do I read and
write to a serial port? Can anyone point me to some sample code for
serial port I/O? I suppose I can look at the source for telnet -- it
probably uses the select function.

  Thanks,
 Siegfried


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



Regular Expressions from Bash Shell

2004-09-01 Thread Siegfried Heintze
I want to use grep on all the FORTRAN source code files in the current
directory whose file names do not contain a _ character. How do I do this?

I'm using the extension of .f to designate FORTRAN. 
Thank you,
   Siegfried


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



How to use ddd with XWindows?

2004-07-13 Thread Siegfried Heintze
I apologize if I had already posted this question. However, I did not see my
own posting and I assume it never made it to the mailing list.

I see from the posting below that you are using startx. H... I think
that is the command I use on Linux. I tried it on Win2003 server running
cygwin and there is no such command.

I'm using the command XWin.exe  and I'm trying to run the ddd debugger.
XWindows seems to start OK. I can run X utilities like the XClock.

However, when I try to start ddd main_assert.exe I get the Error: Can't
open display:.

Someone in the [EMAIL PROTECTED] mailing list suggested I need to set the
display and then I was chastised for carrying on off topic.

Can someone help me run ddd? Currently, ddd is my only motivation for
running XWindows. I was told I needed to start the XWindows server before I
could run ddd.
Thanks,
Siegfried


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Alexander Gottwald
Sent: Tuesday, July 13, 2004 9:32 AM
To: [EMAIL PROTECTED]
Subject: Re: X startup hangs

On Tue, 13 Jul 2004, electa wrote:

 When i try to start X with command:
 $ startx
 
 (--) Setting autorepeat to delay=500, rate=31
 (--) winConfigKeyboard - Layout: 0410 (0410)
 (--) Using preset keyboard for Italian (410), type 4
 Rules = xorg Model = pc105 Layout = it Variant = (null) Options =
 (null
 )
 
 at this point output stops, and no window appear.
 with 'ps' I can see that Xwin.exe and xinit.exe are both running (in winXp
 task manager too)
 
 trying with startxwin.bat, I get the same output and again no window.

what does mount report?

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723



RE: need -mrtd to create Excel DLL?

2004-07-13 Thread Siegfried Heintze
Lester,
 It works! Thank you. Assuming these will be archived, maybe this can help
someone else.

Since I'm wondering if Excel was caching something, I decided to use C# and
it works!
 Thanks,
Siegfried

Here is the example of calling cygwin C from C#:
--begin here --

//  Begin commands to execute this file using MS.NET with bash
//  cat EOF cdll.h
//  #ifndef cdll_h_included

//  #define cdll_h_included

//

//  /*

//   * When building the DLL code, you should define BUILDING_DLL so that

//   * the variables/functions are exported correctly. When using the DLL,

//   * do NOT define BUILDING_DLL, and then the variables/functions will

//   * be imported correctly.

//   *

//   * You need to be using egcs-1.1.1 or newer.

//   *

//   * Building the DLL:

//   *  - define BUILDING_DLL, which defines DLLIMPORT
__attribute__((dllexport))

//   * Building the client code:

//   *  - DO NOT define BUILDING_DLL, which defines DLLIMPORT to be one

//   *__attribute__((dllimport))

//   */

//

//  #if BUILDING_DLL

//  # define DLLIMPORT __declspec (dllexport)

//  #else /* Not BUILDING_DLL */

//  # define DLLIMPORT __declspec (dllimport)

//  #endif /* Not BUILDING_DLL */

//

//  DLLIMPORT double dll_double_square (double);

//  #endif /* cdll_h_included */

//  EOF
//  cat EOF cdll.c
//  #include cdll.h 
//  DLLIMPORT double  
//  dll_double_square (double d)  
//  { 
//return d * d;   
//  } 
//  EOF
//  gcc cdll.c -DBUILDING_DLL=1 -mrtd -g -O2 -Wall -mno-cygwin -mrtd -shared
-o cdll.dll -Wl,--out-implib=cdll.lib -Wl,--compat-implib
-Wl,--add-stdcall-alias -Wl,--enable-stdcall-fixup -Wl,--enable-auto-import
-Wl,--enable-auto-image-base  -Wl,--export-all-symbols
-Wl,--output-def=cdll.def -Wl,--no-whole-archive 
//  c:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/csc  /checked /incr /debug
/out:test.exe test.cs
//  ./test 4 2 10 2.3 4.23
//  rm test.exe
//  rm test.exe.incr
//  rm test.pdb
//  End commands to execute this file using MS.NET with bash


class test {
  [System.Runtime.InteropServices.DllImport (cdll.dll,
CallingConvention=System.Runtime.InteropServices.CallingConvention.Cdecl)]
   public static extern double dll_double_square(double d);
  static public void Main(string[] args){
System.Console.WriteLine(hello);
for(int ii = 0; iiargs.Length; ii++) 
  System.Console.WriteLine(args[+ii+]=+double.Parse(args[ii]) + 
Square =  + dll_double_square(double.Parse(args[ii])));
  }
}

- end of file -

Here is an example of calling g77 from from C#:
begin file here
/**
 * Begin commands to execute this file using MS.NET with bash
 * cat EOF f77dll.f
 *  function dll_double_square_f77 (value)
 *  double precision dll_double_square_f77, value
 *  print*, '  dll_double_square_f77 value=', value
 *  dll_double_square_f77 = value**2
 *  return
 *  end
 * EOF
 * g77 f77dll.f -DBUILDING_DLL=1 -mrtd -g -O2 -Wall -mno-cygwin -mrtd
-shared -o f77dll.dll -Wl,--out-implib=f77dll.lib -Wl,--compat-implib
-Wl,--add-stdcall-alias -Wl,--enable-stdcall-fixup -Wl,--enable-auto-import
-Wl,--enable-auto-image-base  -Wl,--export-all-symbols
-Wl,--output-def=f77dll.def -Wl,--no-whole-archive 
 * c:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/csc  /checked /incr /debug
/out:test.exe test.cs
 * ./test 4 2 10 2.3 4.23
 * rm test.exe
 * rm test.exe.incr
 * rm test.pdb
 * End commands to execute this file using MS.NET with bash
 */

class test {
  [System.Runtime.InteropServices.DllImport (f77dll.dll,
CallingConvention=System.Runtime.InteropServices.CallingConvention.Cdecl)]
   public static extern double dll_double_square_f77__(ref double d);
  static public void Main(string[] args){
System.Console.WriteLine(hello);
for(int ii = 0; iiargs.Length; ii++) {
  double x = double.Parse(args[ii]);
  System.Console.WriteLine(args[+ii+]=+x +  Square =  +
dll_double_square_f77__(ref x));
}
  }
}
end file here-



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



How to update official cygwin documentation for g77 and gcc? (was: RE: need -mrtd to create Excel DLL?)

2004-07-13 Thread Siegfried Heintze
Lester,
 Yeah, I did the same (with regard to __declspec keywords). Odd, Excell
won't read the DLL but C# will! I was just using Excell because it was handy
to test with. Good thing I really don't need excel. My real concern is
calling g77 from C# (which works). I got C# to call gcc too under cygwin.
Too bad my email wrapped my carefully prepared sample source code.

So our examples should go into the cygwin documentation! How can these be
inserted into to the documentation? Can someone tell us? Surely there will
be others who don't want to buy the Microsoft C++ or FORTRAN compilers but
want their C/FORTRAN code to interact with other Microsoft languages like
C#, VB.NET, Javascript.NET, J#.

Incidentally, I did discover that Microsoft is giving away their C/C++
compiler these days. It is part of the .NET Framework SDK (go to
http://search.microsoft.com to look for it). This free version of the
compiler seems to be able to compile C++ but does not have the standard C++
header files, only the standard C header files. I assume folks would still
prefer g77/gcc to Microsoft's, however. Oopss -- that is off topic. Sorry...



   Siegfried

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Lester Ingber
Sent: Tuesday, July 13, 2004 1:34 PM
To: [EMAIL PROTECTED]
Subject: Re: need -mrtd to create Excel DLL?

Siegfried:

Hi. I did not use any __declspec keywords, etc. -- just vanilla C
code which runs as well under gcc or g++ under Cygwin, FreeBSD, or
SPARC/Solaris, etc.  Creating DLLs is another matter -- I've just tested
this using Cygwin/gcc under XP Pro.  As I said, I cannot get this to
work under Cygwin/g++.

I tested the application with Excel using the dlltest.xls file in
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/
but without the other modifications in his cdll.[ch] files.
To use his dlltest.xls, I named my DLL the same, and created
double dll_double_square (double d)
as one of my functions which called a series of other functions in other
files before returning.

I used the following lines in my Makefile.  No other special code changes
were required in any of my .c or .h files:

CC = gcc
MY_OBJS = \
[.o files]

DLL_OPTION=-mrtd # needed for Excel DLL
CYGWIN_OPTION=-mno-cygwin $(DLL_OPTION)
CDEBUGFLAGS = -g -O2 -Wall
CFLAGS = $(CDEBUGFLAGS) $(CYGWIN_OPTION)

dllmodule = cdll
obj_libs = $(MY_OBJS)
dependency_libs = -lm

# no need for run.exe when creating DLLs -- without a main()
compile: $(MY_OBJS)
@$(CC) -o run.exe $(MY_OBJS) ${dependency_libs}

cdll:
make -i compile
$(CC) $(CFLAGS) -shared -o ${dllmodule}.dll \
-Wl,--out-implib=${dllmodule}.lib \
-Wl,--compat-implib \
-Wl,--add-stdcall-alias \
-Wl,--enable-stdcall-fixup \
-Wl,--enable-auto-import \
-Wl,--enable-auto-image-base \
-Wl,--whole-archive ${obj_libs} \
-Wl,--export-all-symbols \
-Wl,--output-def=${dllmodule}.def \
-Wl,--no-whole-archive ${dependency_libs}

Lester

: Lester,
:  It works! Thank you. Assuming these will be archived, maybe this can help
: someone else.
: 
: Since I'm wondering if Excel was caching something, I decided to use C#
and
: it works!
: 
:  Thanks,
: Siegfried
: 
: Here is the example of calling cygwin C from C#:

:: I was able to create a dll from many C files, representing fairly complex
:: calculations, using the following in my Makefile, without having to add
:: any keywords like __declspec, using info from the Cygwin docs.
:: ...
:: Lester


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



Apache httpd Accepts local connections but not Remote

2004-07-12 Thread Siegfried Heintze
Since you guys are so smart, responsive and generous with your time, I
thought I would try this one on you. I have posted this on the Apache HTTP
mailing list twice with no response.

I have the following in my httpd.conf file. WebDAV seems to be working from
my local network (when using IE 5/6) but I cannot log in from across the
public internet and use the webdav client in IE 5. I can view the web pages
on my site remotely, however. This means my firewall is letting me thru on
port 80. Port 80 is all webdav needs, correct?

(My colleague was having some success using the WebDAV client in Konquerer
on Linux for reading files but never figure out how to write files).

Can anyone tell me what I am doing wrong?  Why cannot I use IE 5/6 to view
my files on my server (via webdav) from a remote client? It keeps prompting
me for a username and password and never grants me access. Below is a
fragment from my httpd.conf file.

I've been going nuts trying to figure this one out for two months or more!

   Siegfried


# DavLockDB /usr/local/apache2/var/DavLock DavLockDB C:/Program
Files/Apache Group/Apache2/conf/DavLock
Alias /cgi-source  C:/Program Files/Apache Group/Apache2/cgi-bin/
Location /cgi-source
  Dav On
  AuthType Basic
  AuthName DAV
  AuthUserFile C:/Program Files/Apache Group/Apache2/conf/main.passwd
  ForceType text/plain
#  LimitExcept GET POST DEL
require user siegfried marty christie scott eric shafi #  /LimitExcept
/Location




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



How to run ddd in XWin?

2004-07-11 Thread Siegfried Heintze
OK, I apparently already have that installed. I typed info XWin and
learned about the options. Nothing terribly relevant to ddd here -- did I
miss something.

OK, I type XWin and ddd test.exe and same error. Any other ideas?
 Test.exe is compiled with the -g option in g77.

I also tried ddd convex.pl and still got the same error. Ddd debugs perl
too, correct?


Thanks,
Siegfried


On Sun, July 11, 2004 6:36 pm, Richard Heintze said:
 Ah hah! Write a short program called test.c and gcc -g
 test.c -o test.exe and ddd test.exe and then I see
 
 Error: can't open display:

This one's easy. It's almost certainly looking for a running X server, 
of which there almost certainly isn't one.
I suggest you install the X.org packages, and then start XWin.exe .. 
(It's worth reading the documentation to decide how you want to start it, 
but I found that XWin.exe -multiwindow -emulate3buttons was useful (I 
use emu3buttons because the laptop I use it on only has 2 :( )

 
 
 Why does this not work?
 
 
 So I download the insight debugger and tried
 /cygdrive/c/dev/insight/bin/gdb.exe test.exe
 
 
 This gives the error
 stat /cygdrive/c/tmp/test.c no such file or directory while 
executing
 
 Well that is not true, the file is there! I tried
 chmod 777 test.c but that did not help. The debugger works, it just 
cannot
 load test.c for some reason!

Just ensure that is the correct path to the file? I would be surprised 
if it was /cygdrive/c/tmp ... More likely is 
/cygdrive/c/cygwin/tmp/test.c .
Does that work?

Chris

-- 
Your mode of life will be changed to EBCDIC.


-- 
Dammit Jim, I'm a doctor, not a computer engineer!


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