[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: email notifications when users login

On Monday 18 September 2006 15:08, Marco Müller wrote:

> IFS="
> "
> nail -s "Login to <put Servername here> by $USER" root < .
> $
> where 'root' is the user this Mail is being mailed to. Nail is a mailer
> like mail and expects a dot to commit EOM.

Just to nitpick, but your syntax of "nail ... <." is not sending a dot to 
nail. It's redirecting the contents of the file ".", which is the current 
directory. If you want to send a dot to a command you should do

echo . | nail -s ...

Dave Carrigan
Seattle, WA, USA
dave@rudedog.org | http://www.rudedog.org/

Attachment: pgplPKCoKtILs.pgp
Description: PGP signature

Reply to: