Re: [SLUG] whats the best way?

From: herrold (herrold@owlriver.com)
Date: Tue Jul 31 2001 - 11:49:46 EDT


On Tue, 31 Jul 2001, Mikes work account wrote:

> There are lots of ways to verify a file exists before acting on it. What is
> the cleanest and most efficient way to verify the existence of a file in a
> directory, from a script run from cron?
>
> my example: ls <file> && <execute program>

[ -e file ] && <execute program>



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:24:56 EDT