Re: who is cron ?

From: charly (kanarispam666_at_yahoo.fr)
Date: 12/16/03


Date: Tue, 16 Dec 2003 17:51:55 +0100

Noi wrote:
> On Mon, 15 Dec 2003 23:51:13 +0100, charly thoughtfully wrote:
>
>
>>Greetings,
>>
>>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
>>/var/log/messages ...)
>>
>>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 ?
>>
>>many thx
>
> 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 !



Relevant Pages

  • who is cron ?
    ... 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 ... how can I automate process requiring to log as root? ...
    (alt.os.linux.redhat)
  • Re: who is cron ?
    ... > 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 ...
    (alt.os.linux.redhat)
  • Re: who is cron ?
    ... > 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 ...
    (alt.os.linux.redhat)