in reply to
Re: output of one program doesn't show in another on server
in thread output of one program doesn't show in another on server
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!