X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org X-IronPortListener: Outbound_SMTP Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: script Date: Mon, 28 Jul 2008 10:34:41 -0400 Message-ID: <31DDB7BE4BF41D4888D41709C476B6570929B222@NIHCESMLBX5.nih.gov> In-Reply-To: <20080727151058.GA3548@linux.local> References: <20080726221147 DOT GA1752 AT linux DOT local> <20080727151058 DOT GA3548 AT linux DOT local> From: "Buchbinder, Barry (NIH/NIAID) [E]" To: , X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m6SEa9Cg002953 r wrote on Sunday, July 27, 2008 11:11 AM: > Saturday 26 July 2008, alle 19:36, René 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. Another way is to put a shortcut in Windows' Startup folder with the following command line. c:\cygwin\bin\sh -c /bin/startup_retrieve_mail.sh This might be preferred by those who do not have any other reason to run cron. - 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/