Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Alpha549
Creator II
Creator II

Get sh / bat run arguments through the job

Hello everyone,

I would like to know if there is a way to get sh / bat arguments through the job.

I know how to use context and properties file to get external variable values, but my question here is specific to sh or bat files through the run command line.

Thanks ! 🙂

Labels (2)
2 Replies
Anonymous
Not applicable

Hi

I am not sure whether I understand your question well, if you are trying to pass new values to context variables when executing the job through the run command line, please try:

>jobName.bat --context=Default --context_param var1=value1--context_param var2=value2

 

Regards

Shong

Anonymous
Not applicable

A good method is to use the implicit context load and setup the path to the context properties file with a context variable. This way you can steer which context file the job will read.

Example:

my_job_run.bat --context_param context_file_path=/var/data/config/context-prod.properties