Re: [MU TECH) cron?

From: Michele Andreoli (andreoli@pisoft.it)
Date: Tue Jun 29 1999 - 13:36:48 CEST


On Mon, Jun 28, 1999 at 10:48:27PM -0500, winsor wrote:
> Michele,
>
> After looking at item #3 on the list below "cron" I thought
> Could this be used with a script running nc to check for incoming mail
> at those "3 minute intervals"???
> or pass data out on defined ports at regular intervals.......
> and just how big would this script have to be???:)
>

The hacker!

This should work:
-------------------------------------------
*/10 * * * * root fetchmail
--------------------------------------------

if you "setup pop3".

If you wish to fetch a web page as regular basis, try that

*/10 * * * * root echo "GET /index.htm" | nc www.xyz.com 80 > /tmp/z.html

If you wish to annoy somebody as regular basis, try that

*/10 * * * * root echo "hello" | sendmail x@y.it

Unfortunately, Vixie Cron assume a continously running machine and
is'nt very useful to use week and month field
In Linux there is another crond daemon: "anacron", the anac(h)ronistic
scheduler. anacron work on daily basis, weaking up when the machine boot.

Michele

-- 
I'd like to conclude with a positive statement, but I can't 
remember any. Would two negative ones do?       -- Woody Allen
---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.auc.dk
For additional commands, e-mail: mulinux-help@sunsite.auc.dk


This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:12 CET