Hi Sam,
It seems you are using old version of Unix which is not supporting this - I am not sure
your can rewrite the statment strlen=${#str} with strlen=`expr length $str`. This may work.
By the way which unix flavour you are using and the version?
Please, issue "man cron" first before asking these questions.
it will be issued every 5th minute of an hour. 0:05, 1:05, etc.
It won't work because there is no path to the script.
It might still no work if you provide the path because cron doesn't pass any environment to the scripts called by it and i can't see any environment set in your code. Maybe it will stop saying "can't find df" or something such.
You could have read that there instead of asking here.
but again, this still may not work because your script doesn't have any environment settings when it is called from cron. When you call it in your shell, it inherits all the environment from it (issue "env" to see it), when you let cron call it it gets nothing and is left to what it sets by itself.
Ok, 'nuff said. I won't answer any more questions before you don't even attempt to get the answers yourself. I'm glad to help, but I'm a lousy man-page-replacement