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

Re: [cobalt-users] Running crons from a script?



"Owen Lees" <owen@xxxxxxxxxxxxxxxx> writes:

> Has anyone had any thoughts about running a job normally done by cron as a
> line in a script?

Yes, of course. Happens every day.

> My requirement is to run a webalizer run for my virtual servers from their
> directories so that they can generate their own stats when they want rather
> than make the server work overtime every day on churning stats for 60 sites.

Sure, no problem.

> So I thought that maybe a simple page which allows the user to generate
> their stats by clicking a link.

You could do that. Or just having them login and type the command.

> Of course - now I figure that only root can access the log files or run
> webalizer from /usr/local blah blah..

That's not completely right. A site-admin can access his own logfiles;
and anyone on the server should be able to run webalizer.

Try logging in as an ordinary user and typing the full path to
webalizer.


-- 
Jens Kristian Søgaard, Mermaid Consulting I/S,
jens@xxxxxxxxxxxxxxxxxxxx,
http://www.mermaidconsulting.com/