cron job: command not found

Hi, I have a simple script. When I run it as cron job. I jot email saying:

/bin/sh: line 1: test.tmp: command not found.

the test.tmp looks like:
#!/bin/sh
date > done

Even I took first line out, I got the same error.
The current shell I have is /bin/tcsh

Could anyone help me out?
Thanks a lot!!

Hi.

Consider that when you login to a server, you have a "context". The context is that your .profile, .bash_profile, or whatever, is executed for you.

Your current directory at this time will most likely be your home directory. The paths to all the commands you love to use, and the aliases you use will be set.

When you run a command with cron, the chances are that most of this doesn't happen.

Some good reading on the subject is provided in this link.

On the off chance. Did you edit the script using unix "vi" (good) or something else such as Windows notepad (bad)?
Failing that, please state which Operating System and version you have and post the crontab entry.
You may find that creating a cron containing only and "env" command is informative because it will demonstrate the skeleton environment of cron.

On reflection the error message suggests that you need to specify the full path to your script in the crontab line.