How to get the list of atoms which have minimum distance

I have calculated minimum distance between two groups how do I check the atoms which have minimum distance i tried -[no]printresnames but it says invalid command

Hi,
maybe the option -o is providing what you look for.
\Alessandra