From: Jens Wille Date: 2012-04-10T20:13:43+09:00 Subject: Re: Bash - "jobs -l" command from ruby. HMmmmm. hi marc! Marc Heiler [2012-04-10 12:22]: > Is there any other way I can find out the PIDs of > the jobs that were started from that bash instance? why not just use plain old `ps`? if you have the PID of the shell in question, you can use that (`ps --pid PID`); or, if your script is an immediate child of the target shell, you can use its PPID (`ps --ppid #{Process.ppid}`). combined with output specifier ('--format pid') and sort option ('--sort start_time') you can extract the last started job's PID (excluding Process.pid, of course). hope that helps... cheers jens