Scheduling Processes in Solaris 8

prstat command

crontab command
All crontab files are maintained in /var/spool/cron/crontabs/username(s)

crontab file format
minutes(0-59) hour(0-23) day-of-month(1-31) month(1-12) day-of-week(0-6) command-to-be-run by cron
An asterik "*" is used to indicate "all"

View root crontab file:
# crontab -l
any regular user's crontab file:
# crontab -l username

Editing crontab:
# EDITOR=vi
# export EDITOR
# crontab -e


Removing crontab:
# crontab -r username

Executing Job at specified times:
See at command

at command access:
By default Solaris includes /etc/cron.d/at.deny
This file identifies prohibited users
File format is one username per line
If /etc/cron.d/at.deny exists but is empty, then all users can use at command
root may create /etc/cron.d/at.allow to list users who are allowed
allow is read first, and deny always overrides allow
If neither file exists, then root is only user allowed to run at commands

Back