Re: Perl script not executing from cron job

2012-03-27 Thread Shawn H Corey
On 12-03-27 10:16 AM, Anirban Adhikary wrote: I have found the solution. I need to write a line to top of my code and its works. use Lib "Path to your perl code"; then I can run this perl code directly from crontab I dont need a shell script to call the perl code. Try using FindBin. FindBin was

Re: Perl script not executing from cron job

2012-03-27 Thread Anirban Adhikary
Hi All, I have found the solution. I need to write a line to top of my code and its works. use Lib "Path to your perl code"; then I can run this perl code directly from crontab I dont need a shell script to call the perl code. Thanks Anirban Adhikary. On Tue, Mar 27, 2012 at 7:41 PM, Paul Johnson

Re: Perl script not executing from cron job

2012-03-27 Thread Paul Johnson
On Tue, Mar 27, 2012 at 04:30:27PM +0530, Anirban Adhikary wrote: > Hi > I need to run a perl script from cron tab. > > so I write a small shell script and call the perl script within that shell > script. > /usr/bin/perl /home/anirban/perl_code.pl > > Before calling the perl script I copied all t