Tuesday, October 24, 2006

 

CronJob Issues with shellScripts and Perl Scripts

When you are putting ShellScripts or Perl Scripts in CronJob. Following points are note worthy.

1. The environment variables in your Shell are not carried over in a CronJob.
Bcoz when a script is invoked from a CronJob the .bashrc is not scourcd
- !! soln !! - source .bashrc in your shell script

2. Allways use FULL and ABSOLUTE path for files and scripts in your PERL and SHELLSCRIPTS.

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?