If you are running from the command line and your shell environment points to a version of perl that you have installed ( i.e. /opt/perl/5.6.1/bin ), you may have problems in crontab because whichever .profile script you are using will not be sourced when cron runs the job.
For example, if you were in my environment, you would probably pick up /bin/perl and possibly have an issue or two. Try giving the full pathname to the perl executable that you want to use or run your job from a shell script that sources a .profile prior to the .pl script so you pick up the necessary $PATH entries. Something like: #!/usr/bin/ksh . .profile /usr/local/apache/cgi-bin/emnotice1.pl Hope this helps, it is just a guess. Bryan -----Original Message----- From: P.V.Sankar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 8:17 AM To: [EMAIL PROTECTED] Subject: [Perl-unix-users] Perl output different in crontab Hi, I have written a perl script for executing .html & .pl files.If i run this perl script from command prompt ,it is producing the desired output.But the same file if i put in crontab , it is getting executed ,but it is not producing the desired output.My crontab file is as follows. 5,10,15,20 * * * * perl /usr/local/apache/cgi-bin/emnotice1.pl Basically emnotice1.pl file runs two html and one .pl file[using exec & system commands] and produces the output in html form. Can anybody suggest me some solution to sort out this problem Thanks & Regards, Sankar _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs