[PD] [writesf~] in -batch and -nogui modes