X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r.berber@computer.org>
Subject:  Re: script
Date:  Mon, 28 Jul 2008 16:11:27 -0500
Lines: 32
Message-ID: <g6lcl5$f7t$1@ger.gmane.org>
References:  <20080726221147.GA1752@linux.local> <g6gful$87d$1@ger.gmane.org> <20080727151058.GA3548@linux.local> <31DDB7BE4BF41D4888D41709C476B6570929B222@NIHCESMLBX5.nih.gov>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  quoted-printable
User-Agent: Thunderbird 2.0.0.16 (Windows/20080708)
In-Reply-To: <31DDB7BE4BF41D4888D41709C476B6570929B222@NIHCESMLBX5.nih.gov>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Buchbinder, Barry (NIH/NIAID) [E] wrote:

> r wrote on Sunday, July 27, 2008 11:11 AM:
>>  Saturday 26 July 2008, alle 19:36, Ren=E9 Berber wrote:
>>> r wrote:
>>>
>>>> How can I execute a script at boot time ?
>>>> it's a simple retrieving email script with 'getmail' [snip]
>>> An easy way is to use cron, with 'crontab -e' add a line like this:
>>>
>>> @reboot /bin/startup_retrieve_mail.sh > /dev/null 2>&1
>>>
>>> Make sure the script is executable, the redirection is optional and
>>> perhaps shouldn't be used at the beginning in case there are error
>>> or unexpected messages, once its working you can put that in.
>=20
> Another way is to put a shortcut in Windows' Startup folder with the
> following command line.
>=20
> c:\cygwin\bin\sh -c /bin/startup_retrieve_mail.sh
>=20
> This might be preferred by those who do not have any other reason to
> run cron.

Does a startup action run when you login or when Windows restarts?

I think they are different things, the cron solution works when cron=20
starts (which could be at any time but the service starts with Windows),=20
your solution doesn't (unless I'm mistaken).
--=20
Ren=E9 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/

