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?= Subject: Re: script Date: Sat, 26 Jul 2008 19:36:45 -0500 Lines: 20 Message-ID: References: <20080726221147 DOT GA1752 AT linux DOT local> 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: <20080726221147.GA1752@linux.local> 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 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 ~/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/