⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install

📁 source code of crond
💻
字号:
/* Copyright 1993,1994 by Paul Vixie * All rights reserved * * Distribute freely, except: don't remove my name from the source or * documentation (don't take credit for my work), mark your changes (don't * get me blamed for your possible bugs), don't alter or remove this * notice.  May be sold if buildable source is provided to buyer.  No * warrantee of any kind, express or implied, is included with this * software; use at your own risk, responsibility for damages (if any) to * anyone resulting from the use of this software rests entirely with the * user. * * Send bug reports, bug fixes, enhancements, requests, flames, etc., and * I'll try to keep a version up to date.  I can be reached as follows: * Paul Vixie          <paul@vix.com>          uunet!decwrl!vixie!paul */$Id: INSTALL,v 2.5 1994/01/15 20:43:43 vixie Exp $Read the comments at the top of the Makefile, then edit the area marked'configurable stuff'.Edit config.h.  The stuff I expect you to change is down a bit from thetop of the file, but it's clearly marked.  Also look at pathnames.h.You don't have to create the /var/cron or /var/cron/tabs directories, sinceboth the daemon and the `crontab' program will do this the first time theyrun if they don't exist.  You do need to have a /var, though -- just "mkdir/var" if you don't have one, or you can "mkdir /usr/var; ln -s /usr/var /var"if you expect your /var to have a lot of stuff in it.You will also need /usr/local/etc and /usr/local/bin directories unless youchange the Makefile.  These will have to be created by hand, but if you area long-time Usenet user you probably have them already.  /usr/local/man iswhere I keep my man pages, but I have the source for `man' and you probablydo not.  Therefore you may have to put the man pages into /usr/man/manl,which will be hard since there will be name collisions.  (Note that the mancommand was originally written by Bill Joy before he left Berkeley, and itcontains no AT&T code, so it is in UUNET's archive of freely-distributableBSD code.)LINUX note: /usr/include/paths.h on some linux systems shows _PATH_SENDMAIL	to be /usr/bin/sendmail even though sendmail is installed in /usr/lib.	you should check this out.say:	make allsu and say:	make installNote that if I can get you to "su and say" something just by asking, you havea very serious security problem on your system and you should look into it.Edit your /usr/lib/crontab file into little pieces -- see the CONVERSION filefor help on this.Use the `crontab' command to install all the little pieces you just created.Some examples (see below before trying any of these!)	crontab -u uucp -r /usr/lib/uucp/crontab.src	crontab -u news -r /usr/lib/news/crontab.src	crontab -u root -r /usr/adm/crontab.srcNotes on above examples: (1) the .src files are copied at the time thecommand is issued; changing the source files later will have no effect untilthey are reinstalled with another `crontab -r' command.  (2) The crontabcommand will affect the crontab of the person using the command unless `-uUSER' is given; `-u' only works for root.  When using most `su' commandsunder most BSD's, `crontab' will still think of you as yourself even thoughyou may think of yourself as root -- so use `-u' liberally.  (3) the `-r'option stands for `replace'; check the man page for crontab(1) for otherpossibilities.Kill your existing cron daemon -- do `ps aux' and look for /etc/cron.Edit your /etc/rc or /etc/rc.local, looking for the line that starts up/etc/cron.  Comment it out and add a line to start the new cron daemon-- usually /usr/local/etc/cron, unless you changed it in the Makefile.Start up this cron daemon yourself as root.  Just type /usr/local/etc/cron(or whatever); no '&' is needed since the daemon forks itself and theprocess you executed returns immediately.ATT notes: for those people unfortunate enough to be stuck on a AT&T UNIX,you will need the public-domain "libndir", found in the B News source and inany comp.sources.unix archive.  You will also need to hack the code some.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -