Hi,
i used your command and it did not hang and it came to prompt
-----------------------------------------------------
mail -s "I am a newbie"
sandy@xyz.com </dev/null
Null message body; hope that's ok
You have new mail in /var/spool/mail/root
-------------------------------------------------------
But i have not recieved any mail yet. when i checked in /var/spool/mail/root i found this in the root file:
From
root@blr.xyz.com Tue Mar 18 23:40:00 2008
Return-Path: <root@blr.xyz.com >
Received: from
root@blr.xyz.com (localhost.localdomain [127.0.0.1])
by
root@blr.xyz.com
(8.12.8/8.12.8) with ESMTP id m2IIA0Jb007195
for <root@blr.xyz.com>; Tue, 18 Mar 2008 23:40:00 +0530
Received: (from root@localhost)
by
root@blr.xyz.com (8.12.8/8.12.8/Submit) id m2IIA0xi007193
for root; Tue, 18 Mar 2008 23:40:00 +0530
Date: Tue, 18 Mar 2008 23:40:00 +0530
Message-Id: <200803181810.m2IIA0xi007193@root@blr.xyz.com >
From:
root@blr.xyz.com (Cron Daemon)
To:
root@blr.xyz.com
Subject: Cron <root@blr> /usr/lib/sa/sa1 1 1
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
Cannot open /var/log/sa/sa18: No such file or directory
please help