I'm relatively new to linux and I'm trying to set up a cronjob which runs a .csh script at a given time each day. The script invokes a program called 'PTA'. I can get the script to start ok as a cronjob but it does not run to completion. At /var/spool/mail/root I receive a message telling me that the PTAHOME variable is not set.
The thing is that I HAVE set this variable in both the .bashrc and .cshrc files and if I run the script from the command line it executes perfectly with no mention of the PTAHOME variable. Has anyone got any suggestions as to what might be going wrong?
Cheers in advance,