Hey, I have some template script, "test.sh", with a simple line:
zgrep -v "#" $vcfgz | awk '{print $1}'
However running it from NF
script:
template "test.sh"
gives error:
Error executing process > 'test (1)'
Caused by:
Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
/groovy/script/Script58F540A7305FFF8AA14EBC89E87E23F4: 3: token recognition error at: '1' @ line 3, column 28.
zcat $vcfgz | awk '{print $1}'""");
1 error
So the problems are "dollar" references in the .sh script. Can I somehow omit it?
Ideally I'd need optional input arguments to the test.sh script:
if it's run standalone, I'd like to run:
bash test.sh firstParamter
and if it's run from NF I'd use only:
template "test.sh" (no need parameters)
Thanks
Damian