Remove session files under /tmp weekly
root@host [/scripts]# ll | grep cleanup.sh
-rwxr-xr-x 1 root root 39 Nov 21 10:41 cleanup.sh*
root@host [/scripts]# cat cleanup.sh
find /tmp/ -name "sess_*" | xargs rm
root@host [/scripts]#
================================
weekly on sunday 1 PM
00 1 * * 7 /scripts/cleanup.sh
================================
root@host [/scripts]# ll | grep cleanup.sh
-rwxr-xr-x 1 root root 39 Nov 21 10:41 cleanup.sh*
root@host [/scripts]# cat cleanup.sh
find /tmp/ -name "sess_*" | xargs rm
root@host [/scripts]#
================================
weekly on sunday 1 PM
00 1 * * 7 /scripts/cleanup.sh
================================