This is the mail archive of the
cygwin
mailing list for the Cygwin project.
script
- From: r <r-trev at fastwebmail dot it>
- To: cygwin at cygwin dot com
- Date: Sun, 27 Jul 2008 00:11:47 +0200
- Subject: script
- Reply-to: r-trev at fastwebmail dot it
How can I execute a script at boot time ?
it's a simple retrieving email script with 'getmail'
I put a line in /etc/rc.d/rc.local calling the script
but it does not execute it ( if I lunch it from bash it does )
There are no messages in /var/log/messagges
I tried with chkconfig
/usr/sbin/chkconfig.exe --add /bin/startup_retrieve_mail.sh --level 35
/usr/sbin/chkconfig.exe --add startup_retrieve_mail.sh --level 35
/usr/sbin/chkconfig --level 35 startup_retrieve_mail.sh on
but everytime it says
" error reading information on service /bin/startup_retrieve_mail.sh: No
such file or directory "
I read man init and inittab, cygwin faq, cygwin manual, searched in
google, in mailing lists.
--
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/