How to get pid of just started process

What can be simpler than echo $!? As one line:

myCommand & echo $!

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)