# Re:

**URL:** <https://www.ruby-forum.com/t/re/118360>\
**Category:** Ruby\
**Created:** [October 26, 2007, 3:35am UTC](https://www.ruby-forum.com/t/re/118360 "2007-10-26T03:35:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yangbinfc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/898d66/32.png) [@yangbinfc](https://www.ruby-forum.com/u/yangbinfc)\
**Post date:** [October 26, 2007, 3:35am UTC](https://www.ruby-forum.com/t/re/118360/1 "2007-10-26T03:35:59Z")

</div>

when use `cmd` syntax, you still can get the process id of the executed  
command.  
you can use $?.pid to get that pid, because a Process::Status object of  
executed command is stored in $? variables.

2007/10/26, \<\>:
