I am trying to get the number of open files periodically through crontab using lsof|wc -l. It always returns zero. It is giving correct result when i run it directly.Any idea about this strange behaviour?Is it related to pipe size as the result can be quite large?Thanks a lot.
Kaka