procmail
[Top] [All Lists]

testing for existence of a file without a fork

2002-05-02 09:50:17
Is there a way to test for a plain file's existence with procmail internals?

Failing that, on a system where /bin/test is a shell script, what would you
folks recommend as a small, cheap-to-run fork that (1) can take a filename as
a positional parameter [so that there's no need to fork a shell to handle
"<"], (2) will exit with an error if the file doesn't exist. and (3) will not
read the whole blasted file if it does exist and is long.  The best I can
think of is head -0.





_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail