Not to execute any graph if the file in a directory is zero bytes

view full story

http://www.unix.com – How to code shell script to know if the file in a dirctory is empty i.e., zero byte then not to execute any graph.Please help on this thanks in advance. ---------- Post updated at 08:18 AM ---------- Previous update was at 08:14 AM ---------- I know if clause wil help.my question is how to check the latest file in that dirctory.There will be many files in that dirctory in that we need to checjk for the latest file for zero byte,if it is zero byte not to execute any graph because what happening is when there is zero byte file our graph which are schedlued picks that zero byte file and fails,t (HowTos)