Thursday, November 10, 2011

Re: [Rails] Running rake task automatically with rights of server?

On Nov 10, 2011, at 11:08 AM, Terri I. wrote:

> I have a task that I would like to have run automatically throughout the
> day without user intervention (guessing I would use a cron job to run a
> rake task). It will be reading in an RSS feed and using that data to
> update a database. The application is secure, using https and requiring
> user certs. So how do you go about having an automated task run with
> basically the rights of the server, as opposed to passing in user
> credentials?
----
cron tasks run as the user

su - root
crontab -e

su - administrator
crontab -e

2 different crontabs executed as each user

Craig

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate