On Saturday 26 May 2007 12:39, deshpande@vsnl.com wrote:
Hello I am using RHEL 4 (full Install) and created a simple perl script with 'perl filename' the command is working correctly but when I run the script ./script I get bad interpreter error
[[root@rhel4es Test]# pwd /var/www/html/Test [root@rhel4es Test]# perl tryPerl2.pl this content is from perl file ! [root@rhel4es Test]# [root@rhel4es Test]# which perl /usr/bin/perl [root@rhel4es Test]# [root@rhel4es Test]# cat tryPerl2.pl #!/usr/bin/perl print "this content is from perl file !\n"; [root@rhel4es Test]# [root@rhel4es Test]# ./tryPerl2.pl
: bad interpreter: No such file or directory
Probably /var mounted as a noexec partition.
-- Raju