Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 468
  • Last Modified:

run procmail only if file exists

Hi, is it possible to run a procmail recipe only if a file exists on the system?  Can you post an example recipe?
0
bryanlloydharris
Asked:
bryanlloydharris
1 Solution
 
ravenplCommented:
#save to /dev/null if file exists
:0 # possibly more flags, eg for testing purpose add :0c
* ? /usr/bin/test -f the/filename/to/test
/dev/null
0
 
bryanlloydharrisAuthor Commented:
Thank you for the help.
0

Featured Post

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now