1758612 Members
2340 Online
108874 Solutions
New Discussion

Cron not working

 
SOLVED
Go to solution
A. Clay Stephenson
Acclaimed Contributor

Re: Cron not working

What happened is very simple. You had 2 or more files that matched *.prt in the current working directory when the find command was invoked. The rule for the -name find option is very simple -- always quote it. If the pattern string is constant (as in your case) then use single quotes. If variable substitution should take place before the find then (e.g. "*${MYVAR}.prt") then double quotes should be used. Of course, I always enclose variables in {}'s too -- even when I don't "need" to. I simply don't like code (even inside my head) then needlessly branches.
If it ain't broke, I can fix that.