; Note: comment lines in .INI files always start with a semicolon [Template] Description=Use this template to create a job that will use another user credentials to start certain program or operation system process. [Variables] ; Key values that have their name enclosed in % signs will be used for ; template wizard questionnaire and substitution variables ; such key values should consist of 2 comma separated parts: ; 1. Field Edit Style (EDIT, YES/NO, FILE BROWSE, ; DIR BROWSE, PROCESS BROWSE, ; FTP BROWSE, MAIL PROFILE LIST, ; REMOTE FILE BROWSE, REMOTE DIR BROWSE, ; REMOTE AGENT LIST, DB PROFILE LIST) ; 2. Prompt ; ; Example: %VAR%=EDIT,What is the name of the service that you want to monitor? ; ; Key values that don't have their name enclosed in % signs will be used for ; job properties (See online help on "Job property names for use with JDL commands" ; topic for more details). ; ; Example: DAY_NUMBER=1 %USER%=EDIT,User name to use for connection to the remote UNIX computer: %PASSWORD%=EDIT,Password to use for authentication on the remote UNIX computer: %DOMAIN%=EDIT,Network domain where this user can be authenticated (to authenticate a local user, enter name of this computer or simply enter dot): %PROGRAM%=EDIT,Name of the program/command to run (enter the complete command line including parameters, if any): %START_TIME%=EDIT,Enter start time (hh:mm in 24-hour time format): JOB_TYPE=S SCHEDULE_TYPE=D SATURDAY=Y SUNDAY=Y SKIP_HOLIDAY=N START_TIME=%START_TIME% DESCRIPTION=Every day this job kicks off the process using another user credentials. ; Notes: The script bellow can include substitution variables. ; Substitution variables must be specified in %VAR% format ; where VAR is the variable name. ; ; Everything after the next line will be used for the template script. ;======================================================================================== [Body] // run command Dim( process_id, number ) RunAsUserAndWait( "%PROGRAM%", "", 0, "%USER%", "%PASSWORD%", "%DOMAIN%", process_id )