Re: fetchmail pops up console windows

2009-01-14 Thread Jason Tishler
On Tue, Jan 13, 2009 at 02:04:27PM -0800, Gary Johnson wrote:
 So how does one set that right?

Besides using editrights as suggested by Larry, you can also use the
Local Security Settings MMC console on Windows 2000 or later:

1. start/Programs/Administrative Tools/Local Security Policy
2. start/Run.../secpol.msc

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: fetchmail pops up console windows

2009-01-14 Thread Gary Johnson
On 2009-01-14, Jason Tishler wrote:
 On Tue, Jan 13, 2009 at 02:04:27PM -0800, Gary Johnson wrote:
  So how does one set that right?
 
 Besides using editrights as suggested by Larry, you can also use the
 Local Security Settings MMC console on Windows 2000 or later:
 
 1. start/Programs/Administrative Tools/Local Security Policy
 2. start/Run.../secpol.msc

Thanks, but I don't seem to have that on this system, Windows XP
Home Edition version 5.1 SP3.  The Run dialog reports that Windows
can't find secpol.msc; locate secpol doesn't return anything; I
have no Administrative Tools item in the Start/Programs list; the
Administrative Tools item in the Control Panel lists only

Component Services
Computer Management
Data Sources (ODBC)
Event Viewer
Microsoft .NET Framework 1.1 Configuration
Microsoft .NET Framework 1.1 Wizards
Performance
Services

After running cygrunsrv --install fetchmail ... again I found
fetchmail in the list of Services, but I didn't see anything in its
Properties dialog that looked like a security setting.  I tried
changing the This account name in the Log On tab to make sure it
was something Windows liked, but its search tool gave me the same
account name as cygrunsrv had installed.  I tried starting fetchmail
from that dialog and got the same error message as before.

Regards,
Gary



--
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: fetchmail pops up console windows

2009-01-14 Thread Jason Tishler
Gary,

On Wed, Jan 14, 2009 at 09:33:31AM -0800, Gary Johnson wrote:
 On 2009-01-14, Jason Tishler wrote:
  On Tue, Jan 13, 2009 at 02:04:27PM -0800, Gary Johnson wrote:
   So how does one set that right?
  
  Besides using editrights as suggested by Larry, you can also use the
  Local Security Settings MMC console on Windows 2000 or later:
  
  1. start/Programs/Administrative Tools/Local Security Policy
  2. start/Run.../secpol.msc
 
 Thanks, but I don't seem to have that on this system, Windows XP
 Home Edition version 5.1 SP3.
 [snip]

Sorry, I forgot XP Home doesn't support the above.  IIRC, this is one of
the reasons why editrights was created.

 I tried starting fetchmail from that dialog and got the same error
 message as before.

I essentially never used a Windows Home edition before, so I don't have
any experience installing and running services on these OSes.  Maybe
someone on the list with this experience can help you?

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: fetchmail pops up console windows

2009-01-13 Thread Jason Tishler
Gary,

On Mon, Jan 12, 2009 at 11:23:08PM -0800, Gary Johnson wrote:
 On 2008-02-22, Dr. Volker Zell wrote:
  This still bugs me. fetchmail pops up console windows when
  delivering mails to procmail.  It doesn't matter if I run fetchmail
  directly from the commandline (in my case in a rxvt window under X)
  or as a service.
 
  Any hint what could cause this popup windows is appreciated. I'm
  running under XP SP2 with the latest packages installed.
 
 I'm having the same problem running fetchmail as a daemon from the
 command line.  Were you able to find a solution?

FWIW, I don't have this problem when running fetchmail as a service.

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: fetchmail pops up console windows

2009-01-13 Thread Buchbinder, Barry (NIH/NIAID) [E]
Gary Johnson wrote on Tuesday, January 13, 2009 2:23 AM:
 On 2008-02-22, Dr. Volker Zell wrote:
 This still bugs me. fetchmail pops up console windows when
 delivering mails to procmail. It doesn't matter if I run fetchmail
 directly from the commandline (in my case in a rxvt window under X)
 or as a service.

 Any hint what could cause this popup windows is appreciated. I'm
 running under XP SP2 with the latest packages installed.

 I'm having the same problem running fetchmail as a daemon from the
 command line.  Were you able to find a solution?

If Dr. Zell cannot solve this problem, I doubt that anything I might
say would be of any use, especially since I have never been faced
with this problem.  But here goes.

Does `cygstart run fetchmail' do what you want?  (See `man run'.)

(Note that run has a `-wait' option.  This might be useful to the
person [in another recent thread] who wanted cygstart to have a
`--wait' option.)

Again, I apologize if this was so much wasted bandwidth.

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.


--
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: fetchmail pops up console windows

2009-01-13 Thread Gary Johnson
On 2009-01-13, Jason Tishler wrote:
 Gary,
 
 On Mon, Jan 12, 2009 at 11:23:08PM -0800, Gary Johnson wrote:
  On 2008-02-22, Dr. Volker Zell wrote:
   This still bugs me. fetchmail pops up console windows when
   delivering mails to procmail.  It doesn't matter if I run fetchmail
   directly from the commandline (in my case in a rxvt window under X)
   or as a service.
  
   Any hint what could cause this popup windows is appreciated. I'm
   running under XP SP2 with the latest packages installed.
  
  I'm having the same problem running fetchmail as a daemon from the
  command line.  Were you able to find a solution?
 
 FWIW, I don't have this problem when running fetchmail as a service.

I saw that in an earlier post and tried to follow the instructions
in /usr/share/doc/Cygwin/fetchmail-6.3.9.README, but I get this
result:

$ cygrunsrv --install fetchmail --path /usr/bin/fetchmail --env 
HOME=$HOME --user $USERDOMAIN\\$USERNAME '-w ' --args '--daemon 300 
--nodetach' --shutdown

$ cygrunsrv -S fetchmail
cygrunsrv: Error starting a service: StartService:  Win32 error 1069:
The service did not start due to a logon failure.

I have both cron and sshd running as services, so that much works,
but they may be running as the system user (whatever it's called).
I don't know how to diagnose this sort of failure.

Regards,
Gary



--
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: fetchmail pops up console windows

2009-01-13 Thread Dr. Volker Zell
 Gary Johnson writes:

 On 2008-02-22, Dr. Volker Zell wrote:
 Hi
 
 This still bugs me. fetchmail pops up console windows when delivering
 mails to procmail.
 It doesn't matter if I run fetchmail directly from the commandline (in
 my case in a rxvt window under X) or as a service.

 Any hint what could cause this popup windows is appreciated. I'm running
 under XP SP2 with the latest packages installed.

 I'm having the same problem running fetchmail as a daemon from the
 command line.  Were you able to find a solution?

Yes, cockpit error, I didn't follow the cygwin fetchmail README:

fetchmail --nodetach is your friend
  ^^
  
 Regards,
 Gary

Ciao
  Volker
  

--
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: fetchmail pops up console windows

2009-01-13 Thread Jason Tishler
Gary,

On Tue, Jan 13, 2009 at 09:55:36AM -0800, Gary Johnson wrote:
 On 2009-01-13, Jason Tishler wrote:
  FWIW, I don't have this problem when running fetchmail as a service.
 
 I saw that in an earlier post and tried to follow the instructions in
 /usr/share/doc/Cygwin/fetchmail-6.3.9.README, but I get this result:
 
 [snip]
 
 $ cygrunsrv -S fetchmail
 cygrunsrv: Error starting a service: StartService:  Win32 error 1069:
 The service did not start due to a logon failure.
 
 I have both cron and sshd running as services, so that much works,
 but they may be running as the system user (whatever it's called).
 I don't know how to diagnose this sort of failure.

Did you heed the following from the README?

o the $USERDOMAIN\\$USERNAME account must have the Log on as a
  service user right for Cygwin fetchmail to start as a NT service

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: fetchmail pops up console windows

2009-01-13 Thread Gary Johnson
On 2009-01-13, Jason Tishler wrote:
 Gary,
 
 On Tue, Jan 13, 2009 at 09:55:36AM -0800, Gary Johnson wrote:
  On 2009-01-13, Jason Tishler wrote:
   FWIW, I don't have this problem when running fetchmail as a service.
  
  I saw that in an earlier post and tried to follow the instructions in
  /usr/share/doc/Cygwin/fetchmail-6.3.9.README, but I get this result:
  
  [snip]
  
  $ cygrunsrv -S fetchmail
  cygrunsrv: Error starting a service: StartService:  Win32 error 1069:
  The service did not start due to a logon failure.
  
  I have both cron and sshd running as services, so that much works,
  but they may be running as the system user (whatever it's called).
  I don't know how to diagnose this sort of failure.
 
 Did you heed the following from the README?
 
 o the $USERDOMAIN\\$USERNAME account must have the Log on as a
   service user right for Cygwin fetchmail to start as a NT service

I heeded it in the sense that I read it and understood that it might
be the problem.  I did go searching in the Control Panel for likely
utilities, but I couldn't find anything in User Accounts or anywhere
else that would let me set user rights or that even told me what
they were.  I did not search Windows Help and Support.  That sort of
cluelessness was meant to be implicit in the statement, I don't
know how to diagnose this sort of failure, but I suppose I should
have been more clear.

So how does one set that right?

Regards,
Gary



--
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: fetchmail pops up console windows

2009-01-13 Thread Larry Hall (Cygwin)

Gary Johnson wrote:

On 2009-01-13, Jason Tishler wrote:

Gary,

On Tue, Jan 13, 2009 at 09:55:36AM -0800, Gary Johnson wrote:

On 2009-01-13, Jason Tishler wrote:

FWIW, I don't have this problem when running fetchmail as a service.

I saw that in an earlier post and tried to follow the instructions in
/usr/share/doc/Cygwin/fetchmail-6.3.9.README, but I get this result:

[snip]

$ cygrunsrv -S fetchmail
cygrunsrv: Error starting a service: StartService:  Win32 error 1069:
The service did not start due to a logon failure.

I have both cron and sshd running as services, so that much works,
but they may be running as the system user (whatever it's called).
I don't know how to diagnose this sort of failure.

Did you heed the following from the README?

o the $USERDOMAIN\\$USERNAME account must have the Log on as a
  service user right for Cygwin fetchmail to start as a NT service


I heeded it in the sense that I read it and understood that it might
be the problem.  I did go searching in the Control Panel for likely
utilities, but I couldn't find anything in User Accounts or anywhere
else that would let me set user rights or that even told me what
they were.  I did not search Windows Help and Support.  That sort of
cluelessness was meant to be implicit in the statement, I don't
know how to diagnose this sort of failure, but I suppose I should
have been more clear.

So how does one set that right?


'/usr/share/csih/cygwin-service-installation-helper.sh' has this:

editrights -u ${user} -t SeServiceLogonRight

Try that, substituting the appropriate user for your situation and
Windows version.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

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



Re: fetchmail pops up console windows

2009-01-13 Thread Gary Johnson
On 2009-01-13, Dr. Volker Zell wrote:
  Gary Johnson writes:
 
  On 2008-02-22, Dr. Volker Zell wrote:
  Hi
  
  This still bugs me. fetchmail pops up console windows when delivering
  mails to procmail.
  It doesn't matter if I run fetchmail directly from the commandline (in
  my case in a rxvt window under X) or as a service.
 
  Any hint what could cause this popup windows is appreciated. I'm 
 running
  under XP SP2 with the latest packages installed.
 
  I'm having the same problem running fetchmail as a daemon from the
  command line.  Were you able to find a solution?
 
 Yes, cockpit error, I didn't follow the cygwin fetchmail README:
 
 fetchmail --nodetach is your friend
   ^^

Thank you!  That worked, at the expense of having to keep a terminal
open.  I then tried this,

fetchmail --nodetach  fetchmail.log 21 

which leaves the terminal free, doesn't have the pop-up console
windows, and can be killed with fetchmail -q.

Regards,
Gary



--
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: fetchmail pops up console windows

2009-01-13 Thread Gary Johnson
On 2009-01-13, Larry Hall (Cygwin) wrote:
 Gary Johnson wrote:
 On 2009-01-13, Jason Tishler wrote:
 Gary,
 
 On Tue, Jan 13, 2009 at 09:55:36AM -0800, Gary Johnson wrote:
 On 2009-01-13, Jason Tishler wrote:
 FWIW, I don't have this problem when running fetchmail as a service.
 I saw that in an earlier post and tried to follow the instructions in
 /usr/share/doc/Cygwin/fetchmail-6.3.9.README, but I get this result:
 
 [snip]
 
 $ cygrunsrv -S fetchmail
 cygrunsrv: Error starting a service: StartService:  Win32 error 1069:
 The service did not start due to a logon failure.
 
 I have both cron and sshd running as services, so that much works,
 but they may be running as the system user (whatever it's called).
 I don't know how to diagnose this sort of failure.
 Did you heed the following from the README?
 
 o the $USERDOMAIN\\$USERNAME account must have the Log on as a
   service user right for Cygwin fetchmail to start as a NT service
 
 I heeded it in the sense that I read it and understood that it might
 be the problem.  I did go searching in the Control Panel for likely
 utilities, but I couldn't find anything in User Accounts or anywhere
 else that would let me set user rights or that even told me what
 they were.  I did not search Windows Help and Support.  That sort of
 cluelessness was meant to be implicit in the statement, I don't
 know how to diagnose this sort of failure, but I suppose I should
 have been more clear.
 
 So how does one set that right?
 
 '/usr/share/csih/cygwin-service-installation-helper.sh' has this:
 
 editrights -u ${user} -t SeServiceLogonRight
 
 Try that, substituting the appropriate user for your situation and
 Windows version.

I tried this:

$ editrights -u $USER -l
SeServiceLogonRight
SeBatchLogonRight

as well as this:

$ editrights -u $USER -t SeServiceLogonRight
$ echo $?
0

After executing those tests, I again ran the same cygrunsrv
--install fetchmail ... and cygrunsrv -S fetchmail commands and
again got the same Win32 error 1069.

FWIW, my $USER name has a space in it, which occasionally causes
problems with some programs.  This PC was set up a number of years
ago and at the time I didn't understand the implications of giving
Windows my full name as a user name.

Also, as I wrote elsewhere in this thread, I do have a solution to
the pop-up console window problem, so while it would be nice to
have a solution to this fetchmail-as-a-service problem as well, it's
not all that important.

If desired, I can send the output of cygcheck -srv to the list,
but I didn't want to impose a 32K message on everyone otherwise.

Regards,
Gary



--
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: fetchmail pops up console windows

2009-01-12 Thread Gary Johnson
On 2008-02-22, Dr. Volker Zell wrote:
 Hi
 
 This still bugs me. fetchmail pops up console windows when delivering
 mails to procmail.
 It doesn't matter if I run fetchmail directly from the commandline (in
 my case in a rxvt window under X) or as a service.

 Any hint what could cause this popup windows is appreciated. I'm running
 under XP SP2 with the latest packages installed.

I'm having the same problem running fetchmail as a daemon from the
command line.  Were you able to find a solution?

Regards,
Gary



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



fetchmail pops up console windows

2008-02-22 Thread Dr. Volker Zell
Hi

This still bugs me. fetchmail pops up console windows when delivering
mails to procmail.
It doesn't matter if I run fetchmail directly from the commandline (in
my case in a rxvt window under X) or as a service.

I build a debug version of fetchmail. But when running it under the
insight debugger the problem vanishes. 

Any hint what could cause this popup windows is appreciated. I'm running
under XP SP2 with the latest packages installed.

Ciao
  Volker

PS: I tried to send this mail with cygcheck output attached, but somehow
it does not arrive. So this time without.

--
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: fetchmail pops up console windows

2008-02-22 Thread Corinna Vinschen
On Feb 22 13:50, Dr. Volker Zell wrote:
 Hi
 
 This still bugs me. fetchmail pops up console windows when delivering
 mails to procmail.
 It doesn't matter if I run fetchmail directly from the commandline (in
 my case in a rxvt window under X) or as a service.
 
 I build a debug version of fetchmail. But when running it under the
 insight debugger the problem vanishes. 

Add a sleep(60) early in the main function, rebuild, start fetchmail,
then attach gdb to the running process from another console window,
using the pid of fetchmail as second parameter.  Then set a breakpoint
to the next line after the sleep and continue.  This decouples the
console handling of fetchmail from the console handling of gdb.


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: fetchmail pops up console windows

2008-02-22 Thread Christopher Faylor
On Fri, Feb 22, 2008 at 02:04:15PM +0100, Corinna Vinschen wrote:
On Feb 22 13:50, Dr. Volker Zell wrote:
This still bugs me.  fetchmail pops up console windows when delivering
mails to procmail.  It doesn't matter if I run fetchmail directly from
the commandline (in my case in a rxvt window under X) or as a service.

I build a debug version of fetchmail.  But when running it under the
insight debugger the problem vanishes.

Add a sleep(60) early in the main function, rebuild, start fetchmail,
then attach gdb to the running process from another console window,
using the pid of fetchmail as second parameter.  Then set a breakpoint
to the next line after the sleep and continue.  This decouples the
console handling of fetchmail from the console handling of gdb.

Or build cygwin1.dll with --enable-debugging and set the CYGWIN_DEBUG
environment variable to fetchmail.  It should popup a window with
a gdb attached to the fetchmail.

cgf

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