Other people have answered this question quite nicely, I just wanted to add one other point about the current working directory. Say you have a script in /home/me/bin. And it references other files in the current directory, when you run it from the commandline, this will work fine, but if you were to run it from crontab, it would not work as expected. Because when running programs from crontab, the current directory defaults to your home directory, in this case /home/me. It is usually a good idea if your program relies on the path information to other files to use absolute path names, or at least always make sure your program knows where it is before it tries to do anything with a file. Just my 2 cents :-)
"Ex libris un peut de tout"