Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
cgi script and Perl5
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- cgi script and Perl5
cgi script and Perl5
14-11-2009 11:56 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Can anyone help ?
I am attemptting to run a script, "batchsetup.cgi" and i need to modify the first line of the script to represent the path to Perl 5 on the server. The syntax is "#!/usr/local/bin/perl". I have played around making various changes to this line, #!/.../perl --' etc etc but when I execute the script in a browser, each time the server returns,
CCGI encountered an error while attempting to execute this script:
Error Message: Exec format error
Error Number: 8
Permissions are set at 755 and the script resides in the sub directory //cgi-bin /la.
Is it me being stupid and the need to get more sleep?
Thanks
I am attemptting to run a script, "batchsetup.cgi" and i need to modify the first line of the script to represent the path to Perl 5 on the server. The syntax is "#!/usr/local/bin/perl". I have played around making various changes to this line, #!/.../perl --' etc etc but when I execute the script in a browser, each time the server returns,
CCGI encountered an error while attempting to execute this script:
Error Message: Exec format error
Error Number: 8
Permissions are set at 755 and the script resides in the sub directory //cgi-bin /la.
Is it me being stupid and the need to get more sleep?
Thanks

Message 1 of 2
(845 Views)
1 REPLY 1
Re: cgi script and Perl5
15-11-2009 1:26 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi jimjim,
The shebang should be #!/usr/bin/perl -w
The permissions should be 700 and, yes, anywhere under cgi-bin will do.
No it isn't.
Gabe
The shebang should be #!/usr/bin/perl -w
The permissions should be 700 and, yes, anywhere under cgi-bin will do.
Quote from: jimjim Is it me being stupid?
No it isn't.

Gabe
Message 2 of 2
(199 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page