Sergio Gutierrez wrote: > Hello all. > > I have registered to work in fixing bug 6523051, and as this is my first > work in OpenSolaris project, I am needing some help about doing the right > solution for this. > > I have thought about the following solutions: > > 1. At crontab processing, to validate if the package containing nfsfind is > installed; is case it does not, to comment out the line. I think that > solution could work, but I am afraid it is not general enough. > > 2. At crontab processing, to validate if the command exist; in case it does > not, to comment out the line. This case is more general than previous, but, > it would apply for other many situations, and I am not sure if this > behaviour would be acceptable for the whole general cases. > > Thanks in advance for all your comments and guidance; I apologize for my > newbie question. > > Kind regards. > > Sergio Guti?rrez. > _______________________________________________ > nfs-discuss mailing list > nfs-discuss at opensolaris.org >
Sergio, I'd advise against commenting out the line. What happens if someone installs the executable at a later date? A common solution is to test to see if the command exists and only run it if it does. [th199096 at warlock ~]> sudo crontab -l | grep "\-x" 30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean 1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1 Thanks, Tom PS: I'll be willing to sponsor you once you have a fix ready....