Cron not inherting the environment in solaris 2.5.1

view story

http://www.unix.com – Solaris 2.5.1 I have written a shell script that creates a tar file and then ftp's the file to an other box. The shell script perfectly executes when run manually through terminal. But when i schedule it through cron, its not executing and showing exit code RC =1 in cron log. I have added the 2 lines cd / and . . profile per the research i did, but still wont execute when schduled in cron #!/bin/sh cd / . . profile { create tar file function } { ftp function } Appreciate if anyone can point what is wrong and throw a few lines.. Venu (HowTos)