On Saturday 26 May 2007 12:39, [EMAIL PROTECTED] 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
>
> [EMAIL PROTECTED] Test]# pwd
> /var/www/html/Test
> [EMAIL PROTECTED] Test]# perl tryPerl2.pl
> this content is from perl file !
> [EMAIL PROTECTED] Test]#
> [EMAIL PROTECTED] Test]# which perl
> /usr/bin/perl
> [EMAIL PROTECTED] Test]#
> [EMAIL PROTECTED] Test]# cat tryPerl2.pl
> #!/usr/bin/perl
> print "this content is from perl file !\n";
> [EMAIL PROTECTED] Test]#
> [EMAIL PROTECTED] Test]# ./tryPerl2.pl
>
> : bad interpreter: No such file or directory

Probably /var mounted as a noexec partition.

-- Raju
-- 
Raj Mathur           [EMAIL PROTECTED]   http://kandalaya.org/
       GPG: 78D4 FC67 367F 40E2 0DD5  0FEF C968 D0EF CC68 D17F
                      It is the mind that moves

--
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to