Hi Ron,
Is the script executable?
chmod +x process.pl
Ron Brinkman <[EMAIL PROTECTED]> on 08/18/2000 12:18:17 AM
Please respond to [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:
Subject: PERL broken?
Red Hat Linux 6.2
I have a strange problem getting perl to run.
Look at the following information:
[root@cx668484-c cgi-bin]# which perl
/usr/bin/perl
[root@cx668484-c cgi-bin]# more process
#!/bin/bash
echo "Content-Type: text/html"
echo ""
echo "<head><title>Bash test</title></head>"
echo "<body><h1>Testing BASH</h1></body>"
[root@cx668484-c cgi-bin]# more process.pl
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<html><head><title>Hello</title></head><body>Hello
World</body></html>\n";
[root@cx668484-c cgi-bin]# ./process
Content-Type: text/html
<head><title>Bash test</title></head>
<body><h1>Testing BASH</h1></body>
[root@cx668484-c cgi-bin]# ./process.pl
bash: ./process.pl: No such file or directory
[root@cx668484-c cgi-bin]# perl process.pl
Content-type: text/html
<html><head><title>Hello</title></head><body>Hello World</body></html>
[root@cx668484-c cgi-bin]#
================================
When I try to run "./process.pl" the error message
"bash: ./process.pl: No such file or directory" is complaining
that bash cannot find perl! Since which perl clearly shows
it to be located at /usr/bin/perl and since the first line
of the process.pl file is #!/usr/bin/perl I don't see why
this is failing. When I explicitly run "perl process.pl"
it works as expected. What's wrong?
Regards,
Ron Brinkman
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list