I believe this will work.
Code:
find `pwd` -mindepth 4 -type d | xargs -I {} bash -c 'cd {}; tractor -d -r -b preproc RunStages:1 Interactive:FALSE;'
I'm unfamiliar with the tractor command, so that portion may require tweaking. I assumed it executes in whatever directory it is located, but you may need to add a . before the semicolon for a filepath if necessary.
To break it down:
Code:
find `pwd` -mindepth 4 -type d
Generate list of directories. The use of `pwd` ensures absolute filepath names.
Pipe this list to xargs, which will execute a command on each line. The filepath will be represented by {}.
Because we want to execute multiple commands, open a bash shell (or specify other shell) with multiple commands passed in as arguments.
Code:
'cd {}; tractor -d -r -b preproc RunStages:1 Interactive:FALSE;'
Change to a directory specified as a line of output from the find command and execute the tractor command in that directory.