Mok Posted November 14, 2008 Share Posted November 14, 2008 I have placed a Perl script into the CGI Bin on my web server and would like to run through Command Prmomt on my computer, can some one help me do this, like what should I type into command prompt, I have looked up a few version, but some do not seem to work, Please help, thanks, Mok Quote Link to comment https://forums.phpfreaks.com/topic/132689-running-a-perl-file-on-a-server-through-cmd/ Share on other sites More sharing options...
rhodesa Posted November 14, 2008 Share Posted November 14, 2008 #1 Install Perl (on linux it is probably already installed, on windows just google Active Perl) #2 Run the following to confirm perl is installed (you should get a bunch of info back about perl): perl -v #3 Run the perl script: perl /path/to/the/perlfile.cgi Quote Link to comment https://forums.phpfreaks.com/topic/132689-running-a-perl-file-on-a-server-through-cmd/#findComment-690136 Share on other sites More sharing options...
Mok Posted November 15, 2008 Author Share Posted November 15, 2008 I thouight perl files were saved with and extension of .pl JandN Quote Link to comment https://forums.phpfreaks.com/topic/132689-running-a-perl-file-on-a-server-through-cmd/#findComment-690526 Share on other sites More sharing options...
corbin Posted November 15, 2008 Share Posted November 15, 2008 The extension doesn't matter. Extensions are technically suggestions. A .exe could technically contain JPEG information for example. Quote Link to comment https://forums.phpfreaks.com/topic/132689-running-a-perl-file-on-a-server-through-cmd/#findComment-690606 Share on other sites More sharing options...
rhodesa Posted November 15, 2008 Share Posted November 15, 2008 true...extension doesn't matter...but for the most part Perl scripts are either a .pl (command line script) or .cgi (web based) Quote Link to comment https://forums.phpfreaks.com/topic/132689-running-a-perl-file-on-a-server-through-cmd/#findComment-690664 Share on other sites More sharing options...
corbin Posted November 15, 2008 Share Posted November 15, 2008 Yeah, my comment was aimed at him, not you ;p. I guess your comment was aimed at him too, lol. Quote Link to comment https://forums.phpfreaks.com/topic/132689-running-a-perl-file-on-a-server-through-cmd/#findComment-690824 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.