TAILIEUCHUNG - Professional Information Technology-Programming Book part 134

Tham khảo tài liệu 'professional information technology-programming book part 134', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Ruby can be installed through Ports in the usr ports lang ruby directory with other Ruby-related software being in usr ports devel and usr ports www with a rubyprefix. If you re looking for Ruby on Rails you can find it in usr ports www ruby-rails. . Python Python and are available through Ports in the usr ports lang python directory. Extra Python modules and other Python-related software can generally be found in the usr ports devel directory with a py- prefix. Some Apache-specific Python software can be found in the usr ports www directory. Chapter 9. Automation and Reporting Since The OpenBSD Crash Course is not a guide to the Unix BSD GNU command-line environment the exact usage of the system logger and the cron daemon will not be covered here. The sections below cover how to use them on OpenBSD but if you want a full explanation of what they are and what they do you ll have to look up their manpages. . The Cron Daemon OpenBSD s automatic script execution utility is Vixie-cron and like most cron implementations on other Unix-like operating systems OpenBSD s cron table can be edited with the crontab -e command. The default editor for this function is vi. If you run crontab right now as the root user you ll notice that it s already got a page or so worth of entries. Most of these are necessary for regular OpenBSD maintenance though you can certainly adjust them if needed. Each user has his own private cron table but if you want to restrict this privilege to only certain users you can do so with the var cron and or the var cron config files. You may want to take a look around var cron to see some of the other files there as well. OpenBSD s cron can perform commands or scripts in two time-interval formats the traditional five-number time format Mins Hours Days Months Day of the week and simpler word formats @monthly @weekly @daily @hourly Hourly is at the top of the hour daily tasks are performed at midnight weekly is Sunday and .