I am running the following command though a Python script:
tcsh -c 'cmd1 && cmd2 && cmd3 && cmd4'
Only the first command is getting executed or the first two commands are getting executed. How do I make sure all the commands are executed? The first command will source env variables.
Tried login shell '-tcsh' instead of 'tcsh'. I also tried removing 'exit 0' from the scripts that are run though the commands.
cmd1 && cmd2executes cmd2 only if cms1 had success, are you sure at least cmd1 cmd2 and cmd3 success ? Else replace&&by;to do all commands in all cases.The first command will source env variablesexcept if cmd1 is something likesource <file>the new env is lost at the end of cmd1tcsh -c 'cmd1; cmd2; cmd3; cmd4'?tcsh -c 'cmd1 && cmd2 && cmd3 && cmd4'run from your shell and no Python involved anywhere, it shouldn't be tagged Python at all.