12

My Cronjob is not running

view full story
linux-howto

http://www.unix.com – I created a script, Code: size=`du -sm` size=`echo $size | sed 's/.$//'` size1='30720' if [ $size -gt $size1 ] then { find /ask/tarballs -type f -name "*.tgz" -mtime +30 -exec ls -l {} \; find /ask/tarballs -type f -name "*.tgz" -mtime +30 -exec rm -f {} \; } else echo "Directory size doesnt exceed Threshold Limit" fi ============== which is in the directory path /ask/tarballs so i created a cronjob like Code: crontab -e inside that i gave the command Code: 01 * * * * /ask/tarballs/tar1.sh then pressed Esc button and sav (HowTos)