Afficher un message
Vieux 22/09/2006, 09h01   #2
ynotssor
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: If I want my Linux machine sends an automatic e-mail everytime machine boots?

"GS" <globalswamy@hotmail.com> wrote in message
news:1158901008.513594.242850@k70g2000cwa.googlegr oups.com

> If I want my Linux machine sends an automatic e-mail everytime machine
> boots?, where to keep a command, any idea?. Thanks in advance. I need
> to keep a command (Mail -s "booted" xyz@xyz.com < message.txt).


Put the command at the end of one of your startup scripts after the network
interface is configured and up. Which one depends on your distro (which you
don't mention) and what type of network interface is required to send the
mail.

This has nothing to do with sendmail however, so it's not clear why you ask
in this forum?

mail -s "booted `date`" xyz@xyz.com < message.txt

  Réponse avec citation
 
Page generated in 0,05396 seconds with 9 queries