Thanks a million for your help guys
- I do have #!/usr/bin/perl on the top of my runthis.pl
- I'm running on RHEL/Apache2 on an AmazonEC2 instance.
I updated my code according to NetWallah and AnonymousMonk's suggestions, I get the following error as predicted:
Error running runthis.pl : No such file or directory at /var/www/html/abc.cgi line 15
My files are in this path : /var/www/html , this is where I've configured apache to run .cgi and .pl scripts. I changed my line like this:
my @ret = `\usr\bin\perl /var/www/html/runthis.pl`;
No Luck, still says No such file or directory.
- Forgive my stupidity here, is my absolute path formed wrong?
- I didn't quite understand how I should use the FindBin module mbethke mentions. Any clues here would be awesome. Thanks!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.