mailing myself at regular intervals...

hi all,
i wrote a script to mail myself using pine (modified) to keep remind of b'days.
#!/bin/bash
grep "`date +%D |awk -F/ '{print $2+1, $1+0}'`" dataFile >/home/username/mailme

if test -s /home/username/mailme
then
pine -I '^X,y' -subject "Birthday Remainder" username </home/username/mailme
fi
--
dataFile is of format:
6 12 Myla i.e day month name
---
now, when i try run it thru crontab at regular interval it doesn't run.
i can run the script thru commandline and it works. but thru cron, it doesn't what should i do?
---
also is there any other way to mail oneself in scripts?
(using fedora core 4 and our mail server doesn't require authentication)
thanx alot for help....

The reason for you ploblem is that cron has a minimal environment, most likely it is not finding pine. There are other ways to do what you want. See this forum

but we have a mail server and configuring mailx itself will take time. as such i was avoiding it. i don't want to configure sendmail or mailx to interact with our mail server, then be able to use my script.
is there no shortcut?

On linux mailx is called mail. You are probably using sendmail, if not, what do you use? In your script, replace pine with a full path to pine and it should work.

path to file 'dataFile' was missing..
no i m not using mailx/sendmail..i applied a patch to pine so that i could mail by commandline...