masukica Posted June 16, 2010 Report Share Posted June 16, 2010 Hey folks! I was wondering if there is ANY way at all to make UniServer work with "#!/usr/bin/perl" instead of the whole path? Change something inside the software to know that #!/usr/bin/perl is equal to the whole path to perl that I would manually set? I use UniServer to test scripts on my PC, but I then upload them to a server so it's pretty inconvenient having to change that every time... Any and all ideas are greatly appreciated! Thank you! Quote http://www.lifelongchange.com/ Reviews & Discounts Link to comment Share on other sites More sharing options...
Ric Posted June 17, 2010 Report Share Posted June 17, 2010 Uniform Server honours the shebang!By this I men its not ignored for portable reasons.However it does require a full path, which is changed automatically. The following is a proposed solution that does not make entries to your PC’s registry Download and extract a version of Uniform Server to a fixed folder.Run the servers once to establish paths.Download a Perl plugin (minimum or full) again run severs once. On the same drive create a new folder at top level of disk named:(C:/)usr/bin/perl Now copy everything in folder UniServer/usr/bin To (C:/)usr/bin/perl Check that your scripts in folder xxx/UniServer\cgi-bin work The above is a fixed development environment and not portable It’s proposed because I have not had time to test it. :angry: All the bestRic :angry: Quote Link to comment Share on other sites More sharing options...
Shyokou Ouyou Posted September 15, 2010 Report Share Posted September 15, 2010 If the standard shebang "#!/usr/bin/perl" works on the remote server, then the "fixed development environment" recommended by "Ric" would be ok, since what you "upload" is "scripts" rather than the whole box ... Hey folks! I was wondering if there is ANY way at all to make UniServer work with "#!/usr/bin/perl" instead of the whole path? Change something inside the software to know that #!/usr/bin/perl is equal to the whole path to perl that I would manually set? I use UniServer to test scripts on my PC, but I then upload them to a server so it's pretty inconvenient having to change that every time... Any and all ideas are greatly appreciated! Thank you! Quote Link to comment 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.