Dave Carrigan wrote:
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 ...
Thank you for that hint.
I don't even know how I came to that idea of "< .", not strangely enough
that worked for me.
I've changed that, all because of the elegance ;)
Ciao!
Marco
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]