Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 May 2000 15:45:44 +1200
From:      Jonathan Chen <Jonathan.Chen@itouch.co.nz>
To:        Doug Young <dougy@gargoyle.apana.org.au>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: "bad day_of_the_month" (yes really !!!) cron questions
Message-ID:  <20000505154544.E798@jonc.itouch.co.nz>
In-Reply-To: <01f001bfb641$f7228f70$847e03cb@ROADRUNNER>; from dougy@gargoyle.apana.org.au on Fri, May 05, 2000 at 03:25:28AM %2B0000
References:  <018e01bfb62c$58481b00$847e03cb@ROADRUNNER> <20000505131420.A798@jonc.itouch.co.nz> <01aa01bfb632$612c3390$847e03cb@ROADRUNNER> <20000505145429.B798@jonc.itouch.co.nz> <01f001bfb641$f7228f70$847e03cb@ROADRUNNER>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 05, 2000 at 03:25:28AM +0000, Doug Young wrote:
>
> It looks like the most straightforward way to do this is with the default
> system crontab (attached). The question is exactly what line to use to
> tell mail to actually "send". When I send files from a remote FreeBSD
> system manually I use something like
> 
> "mail blah@someplace.com < filename" and then control-D , but I can't
> imagine how to tell the gremlins in the remote box to hop on the
> non-existent keyboard & press the keys.

Well, the "mail someone@someplace.com < filename" doesn't actually require
a control-D to terminate; so you could quite easily put something
like:

	59  1   *   *   *   root    mail someone@someplace.com < /tmp/some-file

into /etc/crontab on the remote box, and it'll do what you want.

Cheers.
-- 
Jonathan Chen <jonathan.chen@itouch.co.nz>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000505154544.E798>