1

CHECK SCRIPT SYNTAX

view story
linux-howto

http://www.unix.com – Hi everyone, i'd like someone chechk this script, i know it's very simple but it doesn't work good, let me tell you this script works over huge directories, maybe that's the problem, if somebody can give me other way to develop, or show me where it's the problem, i'll appreciate it. Code: PATH_ROOT="/ot/bean/923/domains/scape" find $PATH_ROOT/servers/scape-admin/logs/*.log* -mtime +7 -exec rm {} \; find $PATH_ROOT/servers/scape-services-ru/logs/*.log* -mtime +7 -exec rm {} \; find $PATH_ROOT/servers/scape-services/logs/*.log* -mtime +7 -exec rm {} \; find $PATH_ROOT/servers/sc (HowTos)