We are running some command in batch mode. We need to do some more tasks once the existing command is done, so we need to wait until this command is done.For example:bsub -q gui -I calibre -drc -batchwait Can you please tell how we can get the process id of this job mentioned in the wait command or some other alternative to wait until existing command terminates?
How to get process id of a command
shell;background process