[plug] Scripting for email
Jason Nicholls
jason at mindsocket.com.au
Fri Aug 11 17:12:05 WST 2000
Hiya,
On Fri, Aug 11, 2000 at 05:03:44PM +0800, Mike Holland wrote:
> Hey! What happened to the "reply-to:" ???? I want it back!
> Waaaa waaaaa whinge ...
>
> On Fri, 11 Aug 2000, Bradley Browne wrote:
>
> > a script could be written that would compare the date the file in
> > /var/spool/mail/ was last modified and then send an email to me
> > to let me know if it is more than 24 hours from "now" ago. Would
>
> For a shell script, see 'test' which compares the dates on two files.
> You can create a fererence point with: touch -d "1 day ago" filename
Umm, why do that when you have find. Use it to grab a list of files older than
x days ago (best to read the man page), eg for files modified within the last
24 hours::
find /var/spool/mail/ -mtime 1
Later,
Jason Nicholls
--------------------------------------------------------------------
Jason Nicholls icq: 11745841 email: <jason at mindsocket.com.au>
Proprietor mobile: 0417 410 811
Mind Socket [web services] http://www.mindsocket.com.au/
--------------------------------------------------------------------
More information about the plug
mailing list