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!

Is there ANY way to make it work with standard shebang?
Started by masukica, Jun 16 2010 08:05 AM
2 replies to this topic
#2
Posted 17 June 2010 - 04:24 PM
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.
All the best
Ric
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.

All the best
Ric

#3
Posted 14 September 2010 - 10:36 PM
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!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users