I am writing a automation script to execute ptpx.
there are 2 files
run_power.cmd and it has shebang (#!/usr/intel/bin/tcsh), inside this file one more file is being sourced, vars.cmd and it doesnt has shebang
When I source it from python, I get following error
vars.cmd: line 23: syntax error near unexpected token `$argv[1]'
vars.cmd: line 23: ` switch ($argv[1])'
run_power.cmd: line 5: syntax error near unexpected token `exit'
in run_power.cmd
line3:## source variables
line4: source vars.cmd
iline5: f ( $1 == "-help" || $1 == "--help" || $1 == "-h" || $1 == "--h" ) exit 0
line6:
line 7: echo '--------------------------------------------------------------'
in vars.cmd
line 22: set CMD_HELP = 'n Available User Controls: nt-abc con.abc" nt-scenarios "max_nom" nt-up_tag "24ww20" nt-top_autofixer_vars "t-sis2sis "24ww15" nt-qp_version "15.25" nt-tests "t4," nt-test_script "t3" n'
line23:while ( $#argv != 0 )
line24: switch ($argv[1])
line25: case "-help":
pyton
file content
final_power_cmd = f'source {path}/run_power.cmd -abc {abc} -test {test} >> {log_file} & '
print(final_power_cmd)
os.system(final_power_cmd)
can please anyone guess what I am doing wrong here