src/winsup/cygwin ChangeLog fhandler_floppy.cc

2007-05-21 Thread corinna
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]   2007-05-21 09:11:30

Modified files:
winsup/cygwin  : ChangeLog fhandler_floppy.cc 

Log message:
* fhandler_floppy.cc (fhandler_dev_floppy::lseek): Set buf size to
sector size.  Simplify non-sector aligned case.  Handle errors from
raw_read.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.3804r2=1.3805
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_floppy.cc.diff?cvsroot=srcr1=1.46r2=1.47



Re: [Patch] Segfault on unaligned lseek() on /dev/sdX (was: [ITP] ddrescue 1.3)

2007-05-21 Thread Corinna Vinschen
Hi Christian,

On May 20 17:02, Christian Franke wrote:
 fhandler_dev_floppy::lseek() always clears the 60KB pre-read buffer, 
 even on lseek(fd, 0, SEEK_CUR);
 If a programm (like ddrescue) always calls lseek() before each read(), 
 performance is poor, because the same block is read several times.
 
 With this new version of the patch, the buffer is only cleared if necessary.

Thanks for the patch.  I've checked in a simplified version of the
buffer allocation which doesn't require calling alloca.  While at it,
I also added error handling in case raw_read fails.

As for the devbuf part of the patch, it's missing a ChangeLog entry.
Can you please send one, possibly in present tense?  (Your first
ChangeLog was incorrectly written in past tense)


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat


declare hsearch_r

2007-05-21 Thread Eric Blake
Cygwin already exports newlib's hsearch_r, but failed to declare it in
cygwin's replacement search.h.  This leads to unnecessary warnings when
compiling cygwin, at the point where newlib is trying to compile uses of
hsearch_r.

2007-05-21  Eric Blake  [EMAIL PROTECTED]

* include/search.h (hsearch_r): Provide declaration.

Index: include/search.h
===
RCS file: /cvs/src/src/winsup/cygwin/include/search.h,v
retrieving revision 1.2
diff -u -p -r1.2 search.h
--- include/search.h27 Mar 2005 02:31:33 -  1.2
+++ include/search.h21 May 2007 12:57:45 -
@@ -57,6 +57,7 @@ void  hdestroy (void);
 ENTRY *hsearch (ENTRY, ACTION);
 int hcreate_r (size_t, struct hsearch_data *);
 void hdestroy_r (struct hsearch_data *);
+int hsearch_r(ENTRY, ACTION, ENTRY **, struct hsearch_data *);
 void *tdelete (const void * __restrict, void ** __restrict,
   int (*) (const void *, const void *));
 void tdestroy (void *, void (*)(void *));

-- 
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]


Re: declare hsearch_r

2007-05-21 Thread Corinna Vinschen
On May 21 06:59, Eric Blake wrote:
   * include/search.h (hsearch_r): Provide declaration.

Thanks, applied.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat


Re: [Patch] Segfault on unaligned lseek() on /dev/sdX (was: [ITP] ddrescue 1.3)

2007-05-21 Thread Christian Franke

Corinna Vinschen wrote:

As for the devbuf part of the patch, it's missing a ChangeLog entry.
Can you please send one, possibly in present tense?  (Your first
ChangeLog was incorrectly written in past tense)

  



2007-05-21  Christian Franke [EMAIL PROTECTED]

* fhandler_floppy.cc (fhandler_dev_floppy::lseek): Don't invalidate
devbuf if new position is within buffered range.



Christian



Re: Dumper produces unuseable dumps (fix).

2007-05-21 Thread Pedro Alves

Pedro Alves wrote:

I'll have new papers from my employer in a few days, and I'll resubmit 
them.




Just to let you know:
Papers signed and sent.
Let's hope this time the plain doesn't go any near the Bermuda
Triangle.

Please ping me when the papers are in; I may have an
updated patch by then.

Cheers,
Pedro Alves



Re: Cygwin Question?

2007-05-21 Thread Igor Peshansky
On Sat, 19 May 2007, Dustin Ochoa wrote:

 Hello Igor,

Hi.  Questions about Cygwin should be directed to one of the Cygwin lists.
See http://cygwin.com/acronyms/#PPIOSPE for details.  Redirecting.
Please follow up to the list.

 I understand that you are quite knowledgeable on Cygwin and thought
 maybe you could quickly answer my question.  I'm attempting to run
 multiple csh scripts and after I start the third script, I get the
 following error message:

 Exception: STATUS_ACCESS_VIOLATION at eip=0022DAD0
 eax= ebx=00218EA0 ecx=00218C28 edx=7C90EB94 esi=1000 edi=
 ebp=0021BED8 esp=00218D70 program=C:\cygwin\bin\tcsh.exe, pid 4300, thread 
 main
 cs=001B ds=0023 es=0023 fs=003B gs= ss=0023
 Stack trace:
 Frame Function  Args
 0021BED8  0022DAD0  (006D648A, 0021BEF9, 0001, 0040D830)
 00220F08  0041117A  (006D6488, , , )
 00224F68  00411259  (00442B1E, 00479050, 01A0, 006D1BA8)
 00224F88  004117AC  (006D1BA8, , 00225028, 61168030)
 00224FC8  0041C289  (006E5AA8, 006D1BA8, 00479050, 0002)
 00224FE8  0041C3CD  (006E5AA8, 006D6488, 0002, 00441301)
 00225028  0041DA51  (006E3008, 006E5B28, , )
 002278F8  0041B21A  (006E5B28, , , )
 0022A1C8  0041AEFF  (006E5A28, , , )
 0022ABC8  00401722  (0001, , 00479050, 0002)
 0022CCE8  004038FA  (0001, 61169728, 006D1008, 0022CC70)
 0022CD98  61006148  (, 0022CDD0, 610054C0, 0022CDD0)
 610054C0  61004416  (009C, A02404C7, E8611001, FF48)
 3 [main] csh 4300 _cygtls::handle_exceptions: Error while dumping state 
 (probably corrupted stack)

This looks like an error deep inside tcsh code, but you'd probably have to
a) provide the exact steps you took to reproduce it (preferably by
reducing your scripts to simple test cases), and/or b) build tcsh with
debugging symbols and figure out where it crashes.

 Does Cygwin have a problem with running multiple scripts at the same
 time? If so, is there a way around this?

If Cygwin had a problem with running multiple scripts at the same time, it
would have been noticed already.  This sounds like either your local
configuration is broken (multiple cygwin1.dlls, known incompatible
software, etc), or you've stumbled upon a tcsh bug.

That said, I don't use tcsh, and can only offer some generic advice.
Take a look at http://cygwin.com/problems.html and follow the guidelines
for problem reporting (pay particular attention to the part that asks you
to provide your system configuration details).
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!

Freedom is just another word for nothing left to lose...  -- Janis Joplin

--
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 uniformly point to the root of a drive?

2007-05-21 Thread Buchbinder, Barry (NIH/NIAID) [E]
Christopher Faylor wrote on Monday, May 21, 2007 12:16 AM:
 On Sun, May 20, 2007 at 09:12:47PM -0700, Karl M wrote:
 Hi Christopher...
 
 From: Christopher Faylor Subject: Re: How to uniformly point to the
 root of a drive? Date: Sun, 20 May 2007 21:21:59 -0400
 
 On Sun, May 20, 2007 at 05:39:21PM -0700, Karl M wrote:
 Hi All...
 
 From: Christopher Faylor Subject: Re: How to uniformly point to
 the root of a drive? Date: Sun, 20 May 2007 13:36:16 -0400
 
 On Sun, May 20, 2007 at 01:27:05PM -0400, Christopher Faylor
 wrote: 
 So it sounds like Brian's method would work then wouldn't it?
 
 Does this give you what you want, too?
 
 driveroot=$(cygpath $(cygpath -wm /)/..)
 
 What is the difference between cygpath -m ... and cygpath -wm
 ... 
 
 Come on!  Read the fine manual.
 
 It is indeed a fine manual. I did look and -w and -m look to be
 mutually exclusive in their use, but I did find scripts that use -wm,
 thus my question.
 
 So, translation: cgf made a typo.  The 'w' is not needed.
 
 cgf

FYI, -wm and -mw do not give the same output.  I wouldn't know if this
would be considered a bug, as someone else pointed out that -m and -w
should be mutually exclusive, so neither should work.

===
/c cygpath -wm /
c:/cygwin
/c cygpath -mw /
Usage: cygpath (-d|-m|-u|-w|-t TYPE) [-f FILE] [OPTION]... NAME...
   cygpath [-c HANDLE]
   cygpath [-ADHPSW]
Convert Unix and Windows format paths, or output system path information

Output type options:
  -d, --dos print DOS (short) form of NAMEs (C:\PROGRA~1\)
  -m, --mixed   like --windows, but with regular slashes
(C:/WINNT)
  -M, --modereport on mode of file (binmode or textmode)
  -u, --unix(default) print Unix form of NAMEs
(/cygdrive/c/winnt)
  -w, --windows print Windows form of NAMEs (C:\WINNT)
  -t, --type TYPE   print TYPE form: 'dos', 'mixed', 'unix', or
'windows'
Path conversion options:
  -a, --absoluteoutput absolute path
  -l, --long-name   print Windows long form of NAMEs (with -w, -m
only)
  -p, --pathNAME is a PATH list (i.e., '/bin:/usr/bin')
  -s, --short-name  print DOS (short) form of NAMEs (with -w, -m
only)
System information:
  -A, --allusersuse `All Users' instead of current user for -D,
-P
  -D, --desktop output `Desktop' directory and exit
  -H, --homerootoutput `Profiles' directory (home root) and exit
  -P, --smprograms  output Start Menu `Programs' directory and exit
  -S, --sysdir  output system directory and exit
  -W, --windir  output `Windows' directory and exit
Try `cygpath --help' for more information.
1.0 /c

--
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 uniformly point to the root of a drive?

2007-05-21 Thread Corinna Vinschen
On May 20 22:15, Karl M wrote:
 So, translation: cgf made a typo.  The 'w' is not needed.
 
 However, there are scripts (google cygpath -wm) out there.

In the distro?  Which ones?  It would be better to change them,
so we can change cygcheck to handle this unambiguously.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

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



[ANNOUNCEMENT] Updated Cygwin Package: python-2.5.1-2

2007-05-21 Thread Jason Tishler
New News:
=== 
I have updated the version of Python to 2.5.1-2.  The tarballs should be
available on a Cygwin mirror near you shortly.

The following is the only notable change since the previous release:

o include bz2 module that was accidentally omitted in the previous
  release

Old News:
=== 
Python is an interpreted, interactive, object-oriented programming
language.  If interested, see the Python web site for more details:
   
http://www.python.org/ 

Please read the README file:

/usr/share/doc/Cygwin/python-2.5.1.README

since it covers requirements, installation, known issues, etc.

Standard News:
 
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.

If you have questions or comments, please send them to the Cygwin
mailing list at: cygwin@cygwin.com .

  *** 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.

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
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 uniformly point to the root of a drive?

2007-05-21 Thread Karl M

Hi Corinna...

From: Corinna Vinschen Subject: Re: How to uniformly point to the root of a 
drive?

Date: Mon, 21 May 2007 16:29:44 +0200

On May 20 22:15, Karl M wrote:
 So, translation: cgf made a typo.  The 'w' is not needed.
 
 However, there are scripts (google cygpath -wm) out there.

In the distro?  Which ones?  It would be better to change them,
so we can change cygcheck to handle this unambiguously.

There were 2 or 3 scripts I stumbled upon, on the web that contained 
cygpath -wm ... in them. I just looked again and now I don't find them. I 
was never referring to anything in the distro.


I agree that it would be better to change cygpath to handle this 
unambiguously.


Thanks,

...Karl

_
PC Magazine’s 2007 editors’ choice for best Web mail—award-winning Windows 
Live Hotmail. 
http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_pcmag_0507



--
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 uniformly point to the root of a drive?

2007-05-21 Thread Dave Korn
On 21 May 2007 15:30, Corinna Vinschen wrote:

 On May 20 22:15, Karl M wrote:
 So, translation: cgf made a typo.  The 'w' is not needed.
 
 However, there are scripts (google cygpath -wm) out there.
 
 In the distro?

  Nope.

  Which ones?  

http://www.google.co.uk/search?q=%22cygpath+-wm%22sourceid=mozilla-searchsta
rt=0start=0ie=utf-8oe=utf-8client=firefox-arls=org.mozilla:en-GB:official

fisheye5.cenqua.com/browse/~raw,r=1.5/open-jbi-components/tl/src/cmn/setup/bui
ldenv.ksh

fisheye5.cenqua.com/browse/open-esb/tl/src/cmn/setup/buildenv.csh?r=1.12

 It would be better to change them,

  All two of them!

 so we can change cygcheck to handle this unambiguously.

  cygpath.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
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 uniformly point to the root of a drive?

2007-05-21 Thread Corinna Vinschen
On May 21 15:46, Dave Korn wrote:
 On 21 May 2007 15:30, Corinna Vinschen wrote:
  so we can change cygcheck to handle this unambiguously.
 
   cygpath.

Right.  Unfortunately I just found that -m is sometimes used as a modifier
(-dm makes sense) and sometimes standalone (-m instead of -w).

Actually it seems to be better to disallow only combinations which
explicitely don't make sense, but to allow any combination which make
*some* sort of sense.  The rules would be, afaics

- Don't allow -d with -l.
- Allow any other mix of -d, -l, -m and -w.
- Don't allow -u with any of the above flags.

Did I miss one?


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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 uniformly point to the root of a drive?

2007-05-21 Thread Corinna Vinschen
On May 21 17:25, Corinna Vinschen wrote:
 On May 21 15:46, Dave Korn wrote:
  On 21 May 2007 15:30, Corinna Vinschen wrote:
   so we can change cygcheck to handle this unambiguously.
  
cygpath.
 
 Right.  Unfortunately I just found that -m is sometimes used as a modifier
 (-dm makes sense) and sometimes standalone (-m instead of -w).
 
 Actually it seems to be better to disallow only combinations which
 explicitely don't make sense, but to allow any combination which make
 *some* sort of sense.  The rules would be, afaics
 
 - Don't allow -d with -l.
 - Allow any other mix of -d, -l, -m and -w.
 - Don't allow -u with any of the above flags.
 
 Did I miss one?

Yes, I forgot one, -s, which is equivalent to -d, just as modifier
instead of command.  It's a bit of a mess in cygpath...


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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 uniformly point to the root of a drive?

2007-05-21 Thread Lev Bishop

On 5/21/07, Corinna Vinschen [EMAIL PROTECTED] wrote:

On May 21 15:46, Dave Korn wrote:
 On 21 May 2007 15:30, Corinna Vinschen wrote:
  so we can change cygcheck to handle this unambiguously.

   cygpath.

Right.  Unfortunately I just found that -m is sometimes used as a modifier
(-dm makes sense) and sometimes standalone (-m instead of -w).

Actually it seems to be better to disallow only combinations which
explicitely don't make sense, but to allow any combination which make
*some* sort of sense.  The rules would be, afaics

- Don't allow -d with -l.
- Allow any other mix of -d, -l, -m and -w.
- Don't allow -u with any of the above flags.

Did I miss one?


What about -s?

As i hinted in my previous message, the flags handling in cygpath is
inconsistent.
For example:
*) -t mixed and -m are treated differently wrt the system options.
*) You can have -l and -s in effect at the same time (which
literally means convert to a short path and then convert back to a
long path -- maybe this is useful, eg it does filename case
normalization, and checks to see if the file exists, but it seems odd)
*) Options read from a file with -o are processed differently to
options on the commandline (for example, in that case the most recent
of -s and -l takes precedence, rather than both in effect at once.)

Also, in case you missed it some other bug causes -l with a
nonexistent file to five a corrupted output

Lev

--
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 uniformly point to the root of a drive?

2007-05-21 Thread Matthew Woehlke

Corinna Vinschen wrote:

On May 21 15:46, Dave Korn wrote:

On 21 May 2007 15:30, Corinna Vinschen wrote:

so we can change cygcheck to handle this unambiguously.

  cygpath.


Right.  Unfortunately I just found that -m is sometimes used as a modifier
(-dm makes sense) and sometimes standalone (-m instead of -w).

Actually it seems to be better to disallow only combinations which
explicitely don't make sense, but to allow any combination which make
*some* sort of sense.  The rules would be, afaics

- Don't allow -d with -l.
- Allow any other mix of -d, -l, -m and -w.
- Don't allow -u with any of the above flags.


If you mean that '-[wm]+' (rexexpr syntax) means '-m', that's what I 
thought made the most sense. IOW '-w' defaults to '\' but does not 
override '-m', and '-m' implies '-w' unless otherwise specified. 
Actually I see no problem with '-um', it's just a no-op because '-u' 
means '-m' anyway. Even '-lu' and '-su' are actually valid...


So...

'-w' and '-u' are mutually exclusive.
'-s', '-l', '-m' imply '-w' unless '-u' used
'-d' is an alias for '-ws'

Examples:
cygpath -su 'c:\program files'
-- /cygdrive/c/PROGRA~1 # valid path!
cygpath -dm 'c:\program files'
-- C:/PROGRA~1

--
Matthew
When in doubt, duct tape!


--
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 uniformly point to the root of a drive?

2007-05-21 Thread Corinna Vinschen
On May 21 11:55, Lev Bishop wrote:
 On 5/21/07, Corinna Vinschen [EMAIL PROTECTED] wrote:
 On May 21 15:46, Dave Korn wrote:
  On 21 May 2007 15:30, Corinna Vinschen wrote:
   so we can change cygcheck to handle this unambiguously.
 
cygpath.
 
 Right.  Unfortunately I just found that -m is sometimes used as a modifier
 (-dm makes sense) and sometimes standalone (-m instead of -w).
 
 Actually it seems to be better to disallow only combinations which
 explicitely don't make sense, but to allow any combination which make
 *some* sort of sense.  The rules would be, afaics
 
 - Don't allow -d with -l.
 - Allow any other mix of -d, -l, -m and -w.
 - Don't allow -u with any of the above flags.
 
 Did I miss one?
 
 What about -s?

http://cygwin.com/ml/cygwin/2007-05/msg00525.html

 As i hinted in my previous message, the flags handling in cygpath is
 inconsistent.
 [...]

Right, I noticed most of your observations when looking into the source
code.  I'm going to rewrite the option handling to be consistent.
Sorta.  Most of the time at least.  Stay tuned.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

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



AllowUsers Help

2007-05-21 Thread mark2

Hi,
I just signed up for this forum since it looks like there's quite a bit of
useful information on Cygwin here. I have already consulted the Cygwin
manual and searched this forum
(http://www.nabble.com/forum/Search.jtp?forum=12165local=yquery=allowusers)
but I haven't been able to find the answer to my question. I picked up a
book on SSH (SSH, The Secure Shell from O'Reilly) and it discussed limiting
SSH logins with the AllowUsers command.

In the directory cygwin/etc/defaults/etc, I added the AllowUsers setting
with Notepad in the ssh_config file but nothing happened. I could still log
in with other accounts. I then removed this setting and added it in the
sshd_config file in the same directory. Still nothing. I removed the setting
again.

In the cygwin/etc directory, I added the AllowUsers setting. This time it
worked only too well. Now, I could not even log in and I was the one who was
allowed.

I added the setting near the beginning of the file in each of the three
files (as the second or third line) although I'm not sure whether this is
significant. Since I'm somewhat new to Cygwin, I'm not sure what info is
relevant to include as I ask for help. I'm running Cygwin on a Windows XP
Home Edition computer. Any help would be great. Thanks!

Mark
-- 
View this message in context: 
http://www.nabble.com/AllowUsers-Help-tf3791595.html#a10722982
Sent from the Cygwin Users mailing list archive at Nabble.com.


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



Re: AllowUsers Help

2007-05-21 Thread Matthew Woehlke

mark2 wrote:

I just signed up for this forum


This is not a forum. It's a mailing list.


since it looks like there's quite a bit of
useful information on Cygwin here. I have already consulted the Cygwin
manual and searched this forum
(http://www.nabble.com/forum/Search.jtp?forum=12165local=yquery=allowusers)
but I haven't been able to find the answer to my question. 


Did you try:
http://sourceware.org/cgi-bin/search.cgi?wm=wrdform=extendedm=alls=Dul=%2Fml%2Fcygwin%2F%25q=AllowUsers
http://www.google.com/search?hl=enq=cygwin+ssh+allowusers+site%3Acygwin.combtnG=Search
http://www.google.com/search?sourceid=mozclientie=utf-8oe=utf-8q=cygwin+ssh+allowusers


In the directory cygwin/etc/defaults/etc,


cygwin/etc? Where is that? Did you mean /etc?


I added the AllowUsers setting
with Notepad in the ssh_config file but nothing happened.


Don't do that. Using Notepad to edit Cygwin config files is likely to 
break things unless you are using text-mode mounts (which themselves can 
break things). You are better off using Cygwin tools, e.g. 'vi'.



In the cygwin/etc directory, I added the AllowUsers setting.


I guess you mean 'in the file /etc/sshd_config'?


Since I'm somewhat new to Cygwin, I'm not sure what info is
relevant to include as I ask for help. I'm running Cygwin on a Windows XP
Home Edition computer. Any help would be great. Thanks!


Start here:
http://cygwin.com/problems.html

--
Matthew
When in doubt, duct tape!


--
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: AllowUsers Help

2007-05-21 Thread mark2


Matthew Woehlke-3 wrote:
 
 mark2 wrote:
 I just signed up for this forum
 
 This is not a forum. It's a mailing list.
 
 since it looks like there's quite a bit of
 useful information on Cygwin here. I have already consulted the Cygwin
 manual and searched this forum
 (http://www.nabble.com/forum/Search.jtp?forum=12165local=yquery=allowusers)
 but I haven't been able to find the answer to my question. 
 
 Did you try:
 http://sourceware.org/cgi-bin/search.cgi?wm=wrdform=extendedm=alls=Dul=%2Fml%2Fcygwin%2F%25q=AllowUsers
 http://www.google.com/search?hl=enq=cygwin+ssh+allowusers+site%3Acygwin.combtnG=Search
 http://www.google.com/search?sourceid=mozclientie=utf-8oe=utf-8q=cygwin+ssh+allowusers
 
 In the directory cygwin/etc/defaults/etc,
 
 cygwin/etc? Where is that? Did you mean /etc?
 
 I added the AllowUsers setting
 with Notepad in the ssh_config file but nothing happened.
 
 Don't do that. Using Notepad to edit Cygwin config files is likely to 
 break things unless you are using text-mode mounts (which themselves can 
 break things). You are better off using Cygwin tools, e.g. 'vi'.
 
 In the cygwin/etc directory, I added the AllowUsers setting.
 
 I guess you mean 'in the file /etc/sshd_config'?
 
 Since I'm somewhat new to Cygwin, I'm not sure what info is
 relevant to include as I ask for help. I'm running Cygwin on a Windows XP
 Home Edition computer. Any help would be great. Thanks!
 
 Start here:
 http://cygwin.com/problems.html
 
 -- 
 Matthew
 When in doubt, duct tape!
 
 
 --
 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/
 
 
 

Thanks for the reply, Matthew.

I noticed the use of the word forum throughout as I was searching this
website so I thought it was a forum. Sorry.

I will take a look at those links you suggested.

As for the file addresses, I tried to include them as they are listed in
Windows Explorer and as I see them when I look in Cygwin. There is one file
listed at /etc but there are two files listed at /etc/defaults/etc. Sorry
for any confusion.

Thanks for the info!

Mark
-- 
View this message in context: 
http://www.nabble.com/AllowUsers-Help-tf3791595.html#a10723747
Sent from the Cygwin Users mailing list archive at Nabble.com.


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



ps command

2007-05-21 Thread Brian Salter-Duke
Apologies for asking this. I asked it many years ago and did not get an
answer that allowed me to progress. I can not find the earlier replies
but of course cygwin has improved since then.

I have a program that runs in the background a bit like at daemon. It is
called 'qseek'. I want to know whether it is running from a script. On
linux I run ps in the script and grep the output to see if 'qseek' is
there. On cygwin all I get is this line:-

 1688   11876   36440 1004 15:03:03 /usr/bin/perl

because qseek is a perl script. Is there any way that I can get output
of the running processes that will include the text, 'qseek'? Or can
anyone suggest a work around. I need a script to be able to find out
whether qseek is running, in order to start it if it is not, and leave
it running if it is. I am trying again to get this code working
correctly on cygwin as well as linux.

Regards, Brian.
-- 
   Brian Salter-Duke (Brian Duke)[EMAIL PROTECTED] 
   Post: 626 Melbourne Rd, Spotswood, VIC, 3015, Australia
 Phone 03-93992847. http://www.salter-duke.bigpondhosting.com/brian/index.htm
Honorary Researcher Fellow, Dept. of Medicinal Chemistry, Monash Univ.


--
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: ps command

2007-05-21 Thread Brian Dessent
Brian Salter-Duke wrote:

 because qseek is a perl script. Is there any way that I can get output
 of the running processes that will include the text, 'qseek'? Or can
 anyone suggest a work around. I need a script to be able to find out
 whether qseek is running, in order to start it if it is not, and leave
 it running if it is. I am trying again to get this code working
 correctly on cygwin as well as linux.

Use procps.  It's much more capable, e.g. procps -f.  I personally use
something resembling alias ps='procps aux --forest'.

By the way this very same question came up just the other week.

Brian

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



Updated Cygwin Package: python-2.5.1-2

2007-05-21 Thread Jason Tishler
New News:
=== 
I have updated the version of Python to 2.5.1-2.  The tarballs should be
available on a Cygwin mirror near you shortly.

The following is the only notable change since the previous release:

o include bz2 module that was accidentally omitted in the previous
  release

Old News:
=== 
Python is an interpreted, interactive, object-oriented programming
language.  If interested, see the Python web site for more details:
   
http://www.python.org/ 

Please read the README file:

/usr/share/doc/Cygwin/python-2.5.1.README

since it covers requirements, installation, known issues, etc.

Standard News:
 
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.

If you have questions or comments, please send them to the Cygwin
mailing list at: [EMAIL PROTECTED] .

  *** 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.

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6