To configure a refresh script
-
Start Group Policy Editor.
-
Expand the UNIX Setting > Scripts node.
-
Double click Refresh Scripts.
The Refresh Script Properties dialog opens.
-
Click Add.
The New Script dialog opens.
Note: Typically, you write and test the script on the target platform.
-
Click Import.
A file browse dialog appears.
-
Select the script file and click Open.
The script you choose automatically displays in the Name field.
Note: If you do not have a script to import, add a name for the script, select it on the property page and click Edit Script. Group Policy opens a text editor to allow you to create it "on the fly".
-
In the Parameters field, enter any parameters to pass to the script on the command line.
-
Select Options:
-
Run As User: Select this check box and enter a user name to force the script to run as a specific user on the UNIX host.
-
Run once: Select this check box to prohibit the script from running more than one time on the UNIX host.
-
Click Add.
The new script displays in the list of configured scripts for this policy.
-
Select the script in the list.
The Script Preview pane displays the read-only contents of the script.
-
Click Edit Script to edit the contents of configured scripts.
Your text editor launches with the contents of the script so that you can edit and save the script.
-
Close the text editor and save the contents.
The Script Preview pane displays the updated script contents.
The Startup Scripts policy manages the scripts that run each time the Unix agent starts up.
To configure a startup script
-
Start Group Policy Editor.
-
Expand the UNIX Setting > Scriptsnode.
-
Double click Startup Scripts.
The Startup Script Properties dialog opens.
-
Click Add.
The New Script dialog opens.
Note: Typically, you write and test the script on the target platform.
-
Click Import.
A file browse dialog appears.
-
Select the script file and click Open.
The script you choose automatically displays in the Name field.
Note: If you do not have a script to import, add a name for the script, select it on the property page and click Edit Script. Group Policy allows you to create it "on the fly".
-
In the Parameters field, enter any parameters to pass to the script on the command line.
-
Select Options:
-
Run As User: Select this check box and enter a user name to force the script to run as a specific user on the UNIX host.
-
Run once: Select this check box to prohibit the script from running more than one time on the UNIX host.
-
Click Add.
The new script displays in the list of configured scripts for this policy.
-
Select the script in the list.
The Script Preview pane displays the read-only contents of the script.
-
Click Edit Script to edit the contents of configured scripts.
Your text editor launches with the contents of the script so that you can edit and save the script.
-
Close the text editor and save the contents.
The Script Preview pane displays the updated script contents.
The Cron policy manages the UNIX cron daemon. cron is the UNIX process scheduler. Administrators can specify a set of "crontab" entries that define the behavior and scheduling of the UNIX cron daemon.
cron entries are "append only" and cannot be overridden. However, if there is more than one of the same entry, the entry is only added once to the user's crontab file.
For more details, see the cron man page. For information about accessing the cron man page, see Using manual pages (man pages).