delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/04/14:27:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <002a01c4021e$a0b509b0$ac050b0a@PWISNOVSKY>
Reply-To: "Peter Wisnovsky" <peter AT wisnovsky DOT net>
From: "Peter Wisnovsky" <peter AT wisnovsky DOT net>
To: "Cygwin List" <cygwin AT cygwin DOT com>
Subject: fetchmail password from cygrunsrv
Date: Thu, 4 Mar 2004 11:26:43 -0800
MIME-Version: 1.0

I was wondering if anyone had any suggestions for a way to run fetchmail
from a cygrunsrv service without putting your mail account password in your
.fetchmailrc. Based on some info in the mailing list I tried

cygrunsrv --install fetchmail --path /usr/bin/fetchmail --args "--daemon
300 --nodetach" --env HOME=/home/user --termsig TERM --user
'domain\user' --shutdown

When I run fetchmail -d 300 from the command line it interactively asks for
the password, so I don't need to keep it in the file; however if I log out
then the daemon stops running. I thought about having the service start
manually in interactive mode but that seems to require that the service be
run as the local system account, not as me. Any suggestions for starting
this without requiring that I put the password in the args (which ends up as
plaintext in the registry) or in my .fetchmailrc?

Thanks,

Peter


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019