[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Exploring the possibilities of cron



How would cron do something such as, emailing 	a file once and awhile, make
the file empty, and wait until the next run, but not mail anything if it's
empty. I've never done much with emailing besides piping echo to mail, but
it's limited to one line.
Supposing every hour I want it to email me all the users that my friend
requested to be created with a requser script. The script, with echo and
read commands would give the user info to a file, when echoed and appended,
but when the cat filename | mail root won't tell me what the mail is for,
just a bunch of users and passwords. Wonder if cron could be used to just
create the users, so I don't need my friend to have root access. I don't
trust him with it as he doesn't know a real lot about linux, but he may
want email addresses custom to what he chooses, or recreating stuff.




Reply to: