I\'m trying to figure out a way to detect files that are not opened for editing but have nevertheless been modified locally. p4 fstat returns a value headModT
p4 fstat
headModT
Here's a unix solution that has worked very well for me.
How to find untracked files in a Perforce tree? (analogue of svn status)