file stat as shell subprocess