RE: How to create a crontab per user?
On 10-Oct-97 Ken Lauffenburger wrote:
>Hello,
>
>I'm having trouble understanding how to create a crontab on a per-user
>basis. I have tried the standard
Try the non-standard:
crontab -l > my.crtb
vi my.crtb # or emacs or whatever
#make the entries you need and exit
crontab my.crtb
or even:
su
echo "11,41 * * * * /home/mine/prog2run args" > /var/spool/crontabs/mine
>
> crontab -e
>
>... this allows me to think I am editing a personal crontab, but then
>when I save and quit, I get the following:
>
> wrote /tmp/crontab.XXXXa28090, 2 lines, 3 chars
> crontab: "/usr/bin/vi" exited with status 1
>
>... and I check and no crontab was actually created. The docs for
>cron3.0pl1-38 indicate that either one or both of the files
>/var/spool/cron/deny or /var/spool/cron/allow must be present for
>accounts other than root to be permitted a private crontab. So I
>set up both files:
>
>flounder:~> ls -l /var/spool/cron
>total 2
>-rw-r--r-- 1 root root 5 Oct 9 10:46 allow
>drwxr-xr-x 2 root root 1024 Jan 18 1997 crontabs
>-rw-r--r-- 1 root root 0 Oct 9 10:43 deny
>
>The 'allow' file contains my user name, and the 'deny' file is empty.
>This doesn't seem to work either. I tried stopping and restarting
>the cron daemon; this also doesn't work (haven't tried rebooting
>yet, but it seems that shouldn't be necessary).
>
>Can anyone clue me in to the magic configuration that is necessary
>here?
>
>Thanks.
>
>--ken
>
>
> __
> Ken Lauffenburger / / __ __
> ken@efficient.com / / D e b i a n G N U \ \/ /
> / / __ ____ __ __ \ /
> / / / / / _ \ / / / / / \
> ...Look out Bill, / /___ / / / / ) // (_/ / / /\ \
> here comes... (______)(_/ (_/ (_/ \____/ (_/ \_)
> ________http://www.debian.org________
>
>
>
>--
>TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
>debian-user-request@lists.debian.org .
>Trouble? e-mail to templin@bucknell.edu .
-----------------------------------------
Ralph Winslow rjw@nac.net
The IQ of the group is that of the member
whose IQ is lowest divided by the number
of members.
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: