Hi everybody
I am looking for a script that can delete my old linkfiles in Linkssql
i don't kwow if this is possible with a cgi script
in the moment i use the shell command find
find (Path1 of my server) -mtime +10 -exec rm -f {} \;
find (Path2 of my server) -mtime +10 -exec rm -f {} \;
find (Path3 of my server) -mtime +10 -exec rm -f {} \;
I there a possibilty to use the find command in a cgi script?
The other problem is that you can not exclude a folder like cgi-bin or image with the find command
if i use the command it delete all my files older than 10 days
i want to use the script or command in a crontab
please help me
Marina
I am looking for a script that can delete my old linkfiles in Linkssql
i don't kwow if this is possible with a cgi script
in the moment i use the shell command find
find (Path1 of my server) -mtime +10 -exec rm -f {} \;
find (Path2 of my server) -mtime +10 -exec rm -f {} \;
find (Path3 of my server) -mtime +10 -exec rm -f {} \;
I there a possibilty to use the find command in a cgi script?
The other problem is that you can not exclude a folder like cgi-bin or image with the find command
if i use the command it delete all my files older than 10 days
i want to use the script or command in a crontab
please help me
Marina