An example of such a script is efitdb. When it receives a START parameter, it executes the following:
su - nstxops -c /usr/pppl/bin/db/efitdb.cron"su - nstxops" runs the job under the owner name nstxops. The efitdb.cron file simply contains the following lines:
source /usr/pppl/bin/cron.sh idl /usr/pppl/bin/db/efitdb_cron.procron.sh sets the environmental variables, such as your unix PATH variable, necessary for the idl script to run. efitdb_cron.pro could be any IDL code. Note that no arguments can be passed to the IDL code with this method, so input variables must be from a file, environmental variables, etc.
chgrp nstx_sw * chmod g+w *