Re: who is cron ?
From: charly (kanarispam666_at_yahoo.fr)
Date: Tue, 16 Dec 2003 17:51:55 +0100
> On Mon, 15 Dec 2003 23:51:13 +0100, charly thoughtfully wrote:
>>I want to set a cron task which would need to do things only root is
>>normally allowed (say run yum update, tar some files, access
>>Problem is that cron is not allowed to access those files, isn't it ?
>>My question is : how can I automate process requiring to log as root ?
> sudo crontab -e
> # min hour day of month ? day of week
> 20 01 7,21 * * sh /home/userid/someshellscript.sh && mail userid@localhost
> -S "somereport" < /home/userid/outputfromsomeshellscript.txt
thx, I'll give it a try !