SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Job Template Builder Question

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Job Template Builder Question
Author Message
Brad



Joined: 22 Nov 2005
Posts: 2

Post Job Template Builder Question Reply with quote

Is it possible to have the Job Template Builder combine text and a variable in a job property.

For example I have the following Template description:

%PROGRAM%=EDIT,Which program do you want to schedule?
%START_TIME%=EDIT,Enter job start time (hh:mm in 24-hour time format):
%EMAIL_RECIPIENT%=EDIT,To whom do you want to send an email alert when the job finishes:
JOB_TYPE=P
SCHEDULE_TYPE=D
START_TIME=%START_TIME%
SUNDAY=Y
SATURDAY=Y
SKIP_HOLIDAY=N
SKIP=N
ASYNC=N
MSG_FINISH=Y
MSG_EMAIL=Y
MSG_ACCOUNT=scheduler
MSG_PASSWORD=scheduler
MSG_RECIPIENT=%EMAIL_RECIPIENT%
DESCRIPTION=Every day this job kicks off the process.
DETACHED=Y
EXIT_CODE=0
COMMAND="C:\Program Files\File Splitter\File Splitter.exe "%PROGRAM%
START_IN="C:\Program Files\File Splitter\"
DISABLE_ON_ERROR=N
NAME=%PROGRAM%

Basically I want the COMMAND to be prefilled with the program to run and then append the variable to be passed as a parameter to the program.

Thanks,
Brad

Tue Nov 22, 2005 10:05 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7975

Post Re: Job Template Builder Question Reply with quote

Yes, it is possible.

COMMAND="C:\Program Files\File Splitter\File Splitter.exe" %PROGRAM%

In case if the program name is a real name of some executable file that may include spaces, enclose that name in double quotes

COMMAND="C:\Program Files\File Splitter\File Splitter.exe" "%PROGRAM%"

: Is it possible to have the Job Template Builder combine text and a variable
: in a job property.

: For example I have the following Template description: %PROGRAM%=EDIT,Which
: program do you want to schedule?
: %START_TIME%=EDIT,Enter job start time (hh:mm in 24-hour time format):
: %EMAIL_RECIPIENT%=EDIT,To whom do you want to send an email alert when the
: job finishes: JOB_TYPE=P
: SCHEDULE_TYPE=D
: START_TIME=%START_TIME%
: SUNDAY=Y
: SATURDAY=Y
: SKIP_HOLIDAY=N
: SKIP=N
: ASYNC=N
: MSG_FINISH=Y
: MSG_EMAIL=Y
: MSG_ACCOUNT=scheduler
: MSG_PASSWORD=scheduler
: MSG_RECIPIENT=%EMAIL_RECIPIENT%
: DESCRIPTION=Every day this job kicks off the process.
: DETACHED=Y
: EXIT_CODE=0
: COMMAND="C:\Program Files\File Splitter\File Splitter.exe
: "%PROGRAM%
: START_IN="C:\Program Files\File Splitter\"
: DISABLE_ON_ERROR=N
: NAME=%PROGRAM%

: Basically I want the COMMAND to be prefilled with the program to run and then
: append the variable to be passed as a parameter to the program.

: Thanks,
: Brad

Tue Nov 22, 2005 10:12 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7975

Post Re: Job Template Builder Question Reply with quote

By the way, "Start In" parameter doesn't need an ending backslash.

: Yes, it is possible.

: COMMAND="C:\Program Files\File Splitter\File Splitter.exe"
: %PROGRAM%

: In case if the program name is a real name of some executable file that may
: include spaces, enclose that name in double quotes

: COMMAND="C:\Program Files\File Splitter\File Splitter.exe"
: "%PROGRAM%"

Tue Nov 22, 2005 10:14 am View user's profile Send private message
Brad



Joined: 22 Nov 2005
Posts: 2

Post Re: Job Template Builder Question Reply with quote

This is what I end up with as the Command Line property after running the script (Attached below):
C:\Program Files\File Splitter\File Splitter.exe" "%PROGRAM%

I entered TEST for the question - Which program do you want to schedule?
I am expecting to see:
"C:\Program Files\File Splitter\File Splitter.exe" TEST

I am using version 3.4.26
Also the Name is not filled correctly either.

Brad

: Yes, it is possible.

: COMMAND="C:\Program Files\File Splitter\File Splitter.exe"
: %PROGRAM%

: In case if the program name is a real name of some executable file that may
: include spaces, enclose that name in double quotes

: COMMAND="C:\Program Files\File Splitter\File Splitter.exe"
: "%PROGRAM%"

SCRIPT:
%PROGRAM%=EDIT,Which program do you want to schedule?
%START_TIME%=EDIT,Enter job start time (hh:mm in 24-hour time format):
%EMAIL_RECIPIENT%=EDIT,To whom do you want to send an email alert when the job finishes: JOB_TYPE=P
SCHEDULE_TYPE=D
START_TIME=%START_TIME%
SUNDAY=Y
SATURDAY=Y
SKIP_HOLIDAY=N
SKIP=N
ASYNC=N
MSG_FINISH=Y
MSG_EMAIL=Y
MSG_ACCOUNT=scheduler
MSG_PASSWORD=scheduler
MSG_RECIPIENT=%EMAIL_RECIPIENT%
DESCRIPTION=Every day this job kicks off the process.
DETACHED=Y
EXIT_CODE=0
COMMAND="C:\Program Files\File Splitter\File Splitter.exe" "%PROGRAM%"
START_IN="C:\Program Files\File Splitter"
DISABLE_ON_ERROR=N
NAME=%PROGRAM%

Tue Nov 22, 2005 10:35 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.