www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org> |
Subject: | Re: script |
Date: | Sat, 26 Jul 2008 19:36:45 -0500 |
Lines: | 20 |
Message-ID: | <g6gful$87d$1@ger.gmane.org> |
References: | <20080726221147 DOT GA1752 AT linux DOT local> |
Mime-Version: | 1.0 |
User-Agent: | Thunderbird 2.0.0.16 (Windows/20080708) |
In-Reply-To: | <20080726221147.GA1752@linux.local> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
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=20 perhaps shouldn't be used at the beginning in case there are error or=20 unexpected messages, once its working you can put that in. Also, why store the script in /bin ? That's unusual, I would keep /bin=20 and /usr/bin clean, anything added should go either to /usr/local/bin=20 (for a script that everybody can use) or ~<your-user>/bin (for private=20 scripts). --=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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |