...
- If you call a shell job in the JobScheduler Agent then you can write the PID in the shell script to stdout in order to see the PID in the task log.
- On a linux shell you can use "echo $$".
- For Windows look for example here How to get the current PID on Windows.
- Another way how to achieve this is to check the task log.
- There you see the temporary file which is called on the JobScheduler Agent (e.g. for Linux Agent: SCHEDULER-987 Starting process: '/bin/sh' '-c' '"/tmp/sos.C5NpSU"').
...