I have been trying to use nohup with bash for loop and I came across this post here which was helpful and gave me an idea but my command is still not working properly. What I have right now looks like:
nohup sh -c 'for i in {0..9}; do spark-submit --class some.Code /some/Jar.jar --input_path /some/path/part-001"$i"* > test_log.log; done' &
when I run this the job fails with the following exception that the input path does not exists and shows me the path as:
/some/path/part-001{0..9}*
How can I get this to replace $i
with the actual value of i and not the string {0..9}
?
Thanks