Re: Sending mail from rc.local

2007-04-15 Thread Ivo van der Sangen
On Mon, Apr 16, 2007 at 01:40:01AM +0300, Keith Richardson wrote: > The fact that touch is not working suggests rc.local is not even being=20 > called I tested it again. Touch looks to be working now, although I noticed that I had to fork mysqld_safe. Apparently the script stopped when I didn't.

Re: Sending mail from rc.local

2007-04-15 Thread Chris Cappuccio
Mathieu Sauve-Frankel [EMAIL PROTECTED] wrote: > > if [ -x /root/reboot_notification ]; then > > You probably want to use -f here, not -x. man test. > No, if he's trying to execute it on the next line, then testing for the execute bit is the proper thing to do.

Re: Sending mail from rc.local

2007-04-15 Thread Mathieu Sauve-Frankel
> if [ -x /root/reboot_notification ]; then You probably want to use -f here, not -x. man test. -- Mathieu Sauve-Frankel

Re: Sending mail from rc.local

2007-04-15 Thread Mike Erdely
On Sun, Apr 15, 2007 at 10:00:38PM +0200, Ivo van der Sangen wrote: > I am trying to send mail from rc.local to inform users about reboots. I > wrote a script /root/reboot_notification containing the following: > > #!/bin/sh > for user in `/bin/cat /root/reboot_notification_users`; do > ec