Re: how to automatically run a script each day?



Shawn wrote:
I want to run a script everyday. I heard of cron. But the problem is
(1)It seems it needs root permission, which is impossible for me to get
it, because the administrative people in the company will not give that
to me.
(2)I have never used cron. Reading the tutorial found on the web seems
it is not easy (for me).

I am wondering if there is any other ways to do it. It is just a simple
script which needs to be run every day. I hate to do it by myself manually.

Even though cron runs as root, regular users can use it, unless
prohibited by the admin. Basically cron looks at everyone's list of
jobs. If any exist, it runs them _as_that_user_._

ps -ef | grep cron

to see if it's already running on your system. Unless your system is
very unusual, it should be. So just

crontab -e

to make your own list of jobs.

man 5 crontab

to read about crontab files.
.



Relevant Pages

  • Re: how to automatically run a script each day?
    ... Shawn writes: ... It seems it needs root permission, which is impossible for me to get ... I have never used cron. ... crontab calls up the editor to edit the file that cron uses. ...
    (comp.os.linux.misc)
  • Re: how to automatically run a script each day?
    ... I want to run a script everyday. ... I heard of cron. ... It seems it needs root permission, which is impossible for me to get ... man crontab ...
    (comp.os.linux.misc)
  • RE: crond not found
    ... Crontabs does not contain the cron daemon: ... Group: System Environment/Base Source RPM: ... The crontabs package contains root crontab files. ...
    (RedHat)
  • Re: crontab
    ... >>I have scheduled a task by configuring crontab. ... >>and the mail contents are simply stating the successfull execution of ... >>the cron job. ... If MAILTO is ...
    (comp.os.linux.development.system)
  • Re: Race between cron and crontab
    ... This means that cron can ... performed within a single second and cron wakes up to scan the spool directory ... Specifically, when replacing a crontab, crontabfirst creates a temporary ... If you really want cron to have sub-second granularity I don't see how ...
    (freebsd-current)