Try this :
In cron put the line
2 * * * * /usr/local/bin/funscript.sh
contents of /usr/local/bin/funscript.sh
/usr/bin/touch /usr/local/bin/funscript.dat
Make sure script has execute perms
If you want to specify the shell to use (usually a good idea, not that on my machine (openSUSE 10.2), the shell paths are:
prompt:>which sh
prompt:>/usr/bin/sh
prompt:>which bash
prompt:>/bin/bash
note that that's different to your /bin/sh invocation.
Use the 'which' cmd to check
If cron is running, but having a problem with your script(s), it'll normally email the crontab owner eg root with details,
so login as eg root and use the cmd
mailx
note also that cron has a minimal default env, so it's advisable to always specify complete paths to
cmds & files.
Here's a good cron tutorial:
http://www.adminschoice.com/docs/cro...Crontab%20file