System Administration Guide: Resource Management and Network Services

Using cron and su With Projects and Tasks

cron

The cron command issues a settaskid to ensure that each cron, at, and batch job executes in a separate task, with the appropriate default project for the submitting user. Also, the at and batch commands capture the current project ID and ensure that the project ID is restored when running an at job.

su

To switch the user's default project, and thus create a new task (as part of simulating a login) type the following:


# su - user

To retain the project ID of the invoker, issue su without the - flag.


# su user