RexJacobus
Programmer
Hello,
I need to write a simple cron that deletes things older than thirty days.
I have created a file del_list.csh and placed it in the cron folder. The entire file is this:
_______
#!/bin/csh
#
#set echo
find <path>/toplist –name “*.html” –mtime +30 –exec rm –rf {} \;
-------
If I type the single line of code into the command line it works. If I try to run the file by typing "tcsh del_list.csh" nothing happens. Nothing is deleted and there is no error msg.
del_list.csh is owned by user 'ma' and the permissions are set at 777. The files I'm trying to delete are also owned by user 'ma'.
Why does nothing happen and I get no error msg?
thanks,
RexJ
I need to write a simple cron that deletes things older than thirty days.
I have created a file del_list.csh and placed it in the cron folder. The entire file is this:
_______
#!/bin/csh
#
#set echo
find <path>/toplist –name “*.html” –mtime +30 –exec rm –rf {} \;
-------
If I type the single line of code into the command line it works. If I try to run the file by typing "tcsh del_list.csh" nothing happens. Nothing is deleted and there is no error msg.
del_list.csh is owned by user 'ma' and the permissions are set at 777. The files I'm trying to delete are also owned by user 'ma'.
Why does nothing happen and I get no error msg?
thanks,
RexJ