This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: script
- From: René Berber <r dot berber at computer dot org>
- To: cygwin at cygwin dot com
- Date: Sat, 26 Jul 2008 19:36:45 -0500
- Subject: Re: script
- References: <20080726221147.GA1752@linux.local>
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.
Also, why store the script in /bin ? That's unusual, I would keep /bin
and /usr/bin clean, anything added should go either to /usr/local/bin
(for a script that everybody can use) or ~<your-user>/bin (for private
scripts).
--
René 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/